summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2020-07-14 10:21:39 +0200
committerChristoph Wurst <christoph@winzerhof-wurst.at>2020-07-14 15:33:32 +0200
commitf03f88b437511ef29bad9e13c0d1a16e24c50bc8 (patch)
treeecd6c742ff19fb1bdbfe95e1bc08147df92680c2 /tests
parent7b82895982f9fcac8aa04fa9d650bd1113f638c2 (diff)
downloadnextcloud-server-f03f88b437511ef29bad9e13c0d1a16e24c50bc8.tar.gz
nextcloud-server-f03f88b437511ef29bad9e13c0d1a16e24c50bc8.zip
Delegate bootstrap registration lazily
* Keep the registration context * Expose the context object for other components * Ensure registration is only run once Search providers are migrated for demonstration. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/AppFramework/Bootstrap/CoordinatorTest.php6
1 files changed, 0 insertions, 6 deletions
diff --git a/tests/lib/AppFramework/Bootstrap/CoordinatorTest.php b/tests/lib/AppFramework/Bootstrap/CoordinatorTest.php
index 6909ad94e7f..c12e5eeb150 100644
--- a/tests/lib/AppFramework/Bootstrap/CoordinatorTest.php
+++ b/tests/lib/AppFramework/Bootstrap/CoordinatorTest.php
@@ -26,7 +26,6 @@ declare(strict_types=1);
namespace lib\AppFramework\Bootstrap;
use OC\AppFramework\Bootstrap\Coordinator;
-use OC\Search\SearchComposer;
use OC\Support\CrashReport\Registry;
use OCP\App\IAppManager;
use OCP\AppFramework\App;
@@ -54,9 +53,6 @@ class CoordinatorTest extends TestCase {
/** @var IEventDispatcher|MockObject */
private $eventDispatcher;
- /** @var SearchComposer|MockObject */
- private $searchComposer;
-
/** @var ILogger|MockObject */
private $logger;
@@ -70,14 +66,12 @@ class CoordinatorTest extends TestCase {
$this->serverContainer = $this->createMock(IServerContainer::class);
$this->crashReporterRegistry = $this->createMock(Registry::class);
$this->eventDispatcher = $this->createMock(IEventDispatcher::class);
- $this->searchComposer = $this->createMock(SearchComposer::class);
$this->logger = $this->createMock(ILogger::class);
$this->coordinator = new Coordinator(
$this->serverContainer,
$this->crashReporterRegistry,
$this->eventDispatcher,
- $this->searchComposer,
$this->logger
);
}