diff options
author | Joas Schilling <coding@schilljs.com> | 2023-07-27 19:44:42 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2023-07-28 14:11:18 +0200 |
commit | 9bf812ac6c29f7722ba6db876dbabbc1b065dce1 (patch) | |
tree | bfccaf4388810c3db315734bac5e08343680a3bc /apps/files/tests | |
parent | 53392861ff2a2786c9be565a9d5fb09eb652f29a (diff) | |
download | nextcloud-server-9bf812ac6c29f7722ba6db876dbabbc1b065dce1.tar.gz nextcloud-server-9bf812ac6c29f7722ba6db876dbabbc1b065dce1.zip |
feat!: Migrate TagService events to typed events
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/files/tests')
-rw-r--r-- | apps/files/tests/Service/TagServiceTest.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/files/tests/Service/TagServiceTest.php b/apps/files/tests/Service/TagServiceTest.php index dce01e7170f..2b9bc5be460 100644 --- a/apps/files/tests/Service/TagServiceTest.php +++ b/apps/files/tests/Service/TagServiceTest.php @@ -29,10 +29,10 @@ namespace OCA\Files\Tests\Service; use OCA\Files\Service\TagService; use OCP\Activity\IManager; +use OCP\EventDispatcher\IEventDispatcher; use OCP\ITags; use OCP\IUser; use OCP\IUserSession; -use Symfony\Component\EventDispatcher\EventDispatcherInterface; /** * Class TagServiceTest @@ -59,7 +59,7 @@ class TagServiceTest extends \Test\TestCase { */ private $root; - /** @var EventDispatcherInterface|\PHPUnit\Framework\MockObject\MockObject */ + /** @var IEventDispatcher|\PHPUnit\Framework\MockObject\MockObject */ private $dispatcher; /** @@ -90,7 +90,7 @@ class TagServiceTest extends \Test\TestCase { ->willReturn($user); $this->root = \OC::$server->getUserFolder(); - $this->dispatcher = $this->createMock(EventDispatcherInterface::class); + $this->dispatcher = $this->createMock(IEventDispatcher::class); $this->tagger = \OC::$server->getTagManager()->load('files'); $this->tagService = $this->getTagService(['addActivity']); |