diff options
author | Daniel Opitz <git@copynpaste.de> | 2018-10-16 22:37:48 +0200 |
---|---|---|
committer | Sean Molenaar <SMillerDev@users.noreply.github.com> | 2018-12-04 17:10:46 +0100 |
commit | e158cc1d3b1fb33de5aaa1aaac0c7828016fb7b9 (patch) | |
tree | 4d3b4da643a428f259ca9fe1c63d97f8cecfb5fc /tests/Unit/Utility/ProxyConfigParserTest.php | |
parent | 5c7fdb08534018ba86ec4a38f45b63cbbf67a72f (diff) |
use magic class constant instead of classname strings
Diffstat (limited to 'tests/Unit/Utility/ProxyConfigParserTest.php')
-rw-r--r-- | tests/Unit/Utility/ProxyConfigParserTest.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/Unit/Utility/ProxyConfigParserTest.php b/tests/Unit/Utility/ProxyConfigParserTest.php index 34a7e4502..1433558e7 100644 --- a/tests/Unit/Utility/ProxyConfigParserTest.php +++ b/tests/Unit/Utility/ProxyConfigParserTest.php @@ -15,6 +15,7 @@ namespace OCA\News\Tests\Unit\Utility; use OCA\News\Utility\ProxyConfigParser; +use OCP\IConfig; use PHPUnit\Framework\TestCase; class ProxyConfigParserTest extends TestCase @@ -27,9 +28,7 @@ class ProxyConfigParserTest extends TestCase protected function setUp() { - $this->config = $this->getMockBuilder( - '\OCP\IConfig' - ) + $this->config = $this->getMockBuilder(IConfig::class) ->disableOriginalConstructor() ->getMock(); $this->parser = new ProxyConfigParser($this->config); |