private EntityRepository
$salesChannelRepository;
private Context
$context;
protected function setUp(): void
{ $this->lifecycleService =
$this->
getContainer()->
get(ExtensionLifecycleService::
class);
$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
{