diff options
author | Joas Schilling <coding@schilljs.com> | 2020-06-16 21:14:42 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2020-07-01 09:57:33 +0200 |
commit | 35c6b1236fdb2d90e55315dc0c92b5ecb20641e7 (patch) | |
tree | c9c5d8b535abaae6fea24be1c0b458ed65cc6d93 /tests | |
parent | ebedbf157968e40230a102c8f6f17c22990b0aae (diff) | |
download | nextcloud-server-35c6b1236fdb2d90e55315dc0c92b5ecb20641e7.tar.gz nextcloud-server-35c6b1236fdb2d90e55315dc0c92b5ecb20641e7.zip |
Move AutoComplete::filterResults to new event dispatcher and GenericEvent
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Core/Controller/AutoCompleteControllerTest.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/Core/Controller/AutoCompleteControllerTest.php b/tests/Core/Controller/AutoCompleteControllerTest.php index ea62b502196..73bc8492113 100644 --- a/tests/Core/Controller/AutoCompleteControllerTest.php +++ b/tests/Core/Controller/AutoCompleteControllerTest.php @@ -26,9 +26,9 @@ namespace Tests\Core\Controller; use OC\Core\Controller\AutoCompleteController; use OCP\Collaboration\AutoComplete\IManager; use OCP\Collaboration\Collaborators\ISearch; +use OCP\EventDispatcher\IEventDispatcher; use OCP\IRequest; use PHPUnit\Framework\MockObject\MockObject; -use Symfony\Component\EventDispatcher\EventDispatcherInterface; use Test\TestCase; class AutoCompleteControllerTest extends TestCase { @@ -36,7 +36,7 @@ class AutoCompleteControllerTest extends TestCase { protected $collaboratorSearch; /** @var IManager|MockObject */ protected $autoCompleteManager; - /** @var EventDispatcherInterface|MockObject */ + /** @var IEventDispatcher|MockObject */ protected $dispatcher; /** @var AutoCompleteController */ protected $controller; @@ -48,7 +48,7 @@ class AutoCompleteControllerTest extends TestCase { $request = $this->createMock(IRequest::class); $this->collaboratorSearch = $this->createMock(ISearch::class); $this->autoCompleteManager = $this->createMock(IManager::class); - $this->dispatcher = $this->createMock(EventDispatcherInterface::class); + $this->dispatcher = $this->createMock(IEventDispatcher::class); $this->controller = new AutoCompleteController( 'core', |