From f03f88b437511ef29bad9e13c0d1a16e24c50bc8 Mon Sep 17 00:00:00 2001 From: Christoph Wurst Date: Tue, 14 Jul 2020 10:21:39 +0200 Subject: 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 --- tests/lib/AppFramework/Bootstrap/CoordinatorTest.php | 6 ------ 1 file changed, 6 deletions(-) (limited to 'tests/lib/AppFramework') 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 ); } -- cgit v1.2.3