diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2020-07-14 11:21:39 +0300 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2020-07-14 16:33:32 +0300 |
commit | f03f88b437511ef29bad9e13c0d1a16e24c50bc8 (patch) | |
tree | ecd6c742ff19fb1bdbfe95e1bc08147df92680c2 /tests | |
parent | 7b82895982f9fcac8aa04fa9d650bd1113f638c2 (diff) |
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.php | 6 |
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 ); } |