summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJoas Schilling <213943+nickvergessen@users.noreply.github.com>2019-02-26 18:11:24 +0100
committerGitHub <noreply@github.com>2019-02-26 18:11:24 +0100
commita3d936fbb7c8356a39308d836282b4ee6b2abdc1 (patch)
treece0983e0c4d59d53d8f1a07d7fdd3b6b31356deb /tests
parent0051bb7e4cd890793edac99d5b6475457c8580f3 (diff)
parent55f627d20b6eacb1773381ea4325d2159f9c3103 (diff)
downloadnextcloud-server-a3d936fbb7c8356a39308d836282b4ee6b2abdc1.tar.gz
nextcloud-server-a3d936fbb7c8356a39308d836282b4ee6b2abdc1.zip
Merge pull request #14385 from nextcloud/feature/noid/add-event-to-allow-to-filter-results
Add an event to the Autocomplete Controller to allow to filter the re…
Diffstat (limited to 'tests')
-rw-r--r--tests/Core/Controller/AutoCompleteControllerTest.php12
1 files changed, 9 insertions, 3 deletions
diff --git a/tests/Core/Controller/AutoCompleteControllerTest.php b/tests/Core/Controller/AutoCompleteControllerTest.php
index b1e9e6ba304..8ff0542cb0b 100644
--- a/tests/Core/Controller/AutoCompleteControllerTest.php
+++ b/tests/Core/Controller/AutoCompleteControllerTest.php
@@ -27,13 +27,17 @@ use OC\Core\Controller\AutoCompleteController;
use OCP\Collaboration\AutoComplete\IManager;
use OCP\Collaboration\Collaborators\ISearch;
use OCP\IRequest;
+use PHPUnit\Framework\MockObject\MockObject;
+use Symfony\Component\EventDispatcher\EventDispatcherInterface;
use Test\TestCase;
class AutoCompleteControllerTest extends TestCase {
- /** @var ISearch|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var ISearch|MockObject */
protected $collaboratorSearch;
- /** @var IManager|\PHPUnit_Framework_MockObject_MockObject */
+ /** @var IManager|MockObject */
protected $autoCompleteManager;
+ /** @var EventDispatcherInterface|MockObject */
+ protected $dispatcher;
/** @var AutoCompleteController */
protected $controller;
@@ -44,12 +48,14 @@ 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->controller = new AutoCompleteController(
'core',
$request,
$this->collaboratorSearch,
- $this->autoCompleteManager
+ $this->autoCompleteManager,
+ $this->dispatcher
);
}