$this->appRepository =
$this->
getContainer()->
get('app.repository'
);
$this->themeRepository =
$this->
getContainer()->
get('theme.repository', ContainerInterface::NULL_ON_INVALID_REFERENCE
);
$this->salesChannelRepository =
$this->
getContainer()->
get('sales_channel.repository'
);
$this->context =
new Context(new SystemSource(),
[], Defaults::CURRENCY,
[Defaults::LANGUAGE_SYSTEM
]);
} protected function tearDown(): void
{ $this->
removeApp(__DIR__ . '/../_fixtures/TestApp'
);
$this->
removeApp(__DIR__ . '/../_fixtures/TestAppTheme'
);
$this->
removePlugin(__DIR__ . '/../_fixtures/AppStoreTestPlugin'
);
} public function testInstallExtension(): void
{ $this->
installApp(__DIR__ . '/../_fixtures/TestApp', false
);
$this->lifecycleService->
install('app', 'TestApp',
$this->context
);
/** @var AppCollection $apps */
$apps =
$this->appRepository->
search(new Criteria(),
$this->context
)->
getEntities();