diff options
author | Morris Jobke <hey@morrisjobke.de> | 2017-10-25 01:03:28 +0300 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2017-10-26 11:16:12 +0300 |
commit | ab36980d20feb895d9b33ff5dbaacc2cd9fbd3fc (patch) | |
tree | b5165a41d54f8d9e1fae58a69961a6d1c75fb6b4 /apps/dav/tests/unit/SystemTag/SystemTagsObjectTypeCollectionTest.php | |
parent | a82b56b1c7146ddb3085f3e03e18be4700d95a0e (diff) |
Use ::class in test mocks of dav app
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'apps/dav/tests/unit/SystemTag/SystemTagsObjectTypeCollectionTest.php')
-rw-r--r-- | apps/dav/tests/unit/SystemTag/SystemTagsObjectTypeCollectionTest.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/dav/tests/unit/SystemTag/SystemTagsObjectTypeCollectionTest.php b/apps/dav/tests/unit/SystemTag/SystemTagsObjectTypeCollectionTest.php index e3de7db1584..0dc7ace2b89 100644 --- a/apps/dav/tests/unit/SystemTag/SystemTagsObjectTypeCollectionTest.php +++ b/apps/dav/tests/unit/SystemTag/SystemTagsObjectTypeCollectionTest.php @@ -28,6 +28,8 @@ use OCP\Files\Folder; use OCP\IGroupManager; use OCP\IUser; use OCP\IUserSession; +use OCP\SystemTag\ISystemTagManager; +use OCP\SystemTag\ISystemTagObjectMapper; class SystemTagsObjectTypeCollectionTest extends \Test\TestCase { @@ -54,9 +56,9 @@ class SystemTagsObjectTypeCollectionTest extends \Test\TestCase { protected function setUp() { parent::setUp(); - $this->tagManager = $this->getMockBuilder('\OCP\SystemTag\ISystemTagManager') + $this->tagManager = $this->getMockBuilder(ISystemTagManager::class) ->getMock(); - $this->tagMapper = $this->getMockBuilder('\OCP\SystemTag\ISystemTagObjectMapper') + $this->tagMapper = $this->getMockBuilder(ISystemTagObjectMapper::class) ->getMock(); $user = $this->getMockBuilder(IUser::class) |