From 01b4db62fbc4230cff953a2385d305b149744b86 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Fri, 22 Feb 2019 13:07:26 +0100 Subject: Add dispatcher events to User and Group objects Signed-off-by: Joas Schilling --- apps/files/tests/Service/TagServiceTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apps/files') diff --git a/apps/files/tests/Service/TagServiceTest.php b/apps/files/tests/Service/TagServiceTest.php index 4e2aeb84246..e4a41bd5d2e 100644 --- a/apps/files/tests/Service/TagServiceTest.php +++ b/apps/files/tests/Service/TagServiceTest.php @@ -27,6 +27,7 @@ namespace OCA\Files\Tests\Service; use OC\Tags; use OCA\Files\Service\TagService; use OCP\Activity\IManager; +use OCP\IUser; use OCP\IUserSession; use Symfony\Component\EventDispatcher\EventDispatcherInterface; @@ -75,8 +76,7 @@ class TagServiceTest extends \Test\TestCase { \OC::$server->getUserManager()->createUser($this->user, 'test'); \OC_User::setUserId($this->user); \OC_Util::setupFS($this->user); - /** @var \OCP\IUser */ - $user = new \OC\User\User($this->user, null); + $user = $this->createMock(IUser::class); /** * @var \OCP\IUserSession */ -- cgit v1.2.3