class AssetInstallCommandTest extends TestCase
{ use IntegrationTestBehaviour;
public function testItInstallsAppAssets(): void
{ /** @var FilesystemOperator $filesystem */
$filesystem =
$this->
getContainer()->
get('shopware.filesystem.asset'
);
// make sure that the dir does not exist beforehand
$filesystem->
deleteDirectory('bundles/test'
);
$filesystem->
delete('asset-manifest.json'
);
$fixturePath = __DIR__ . '/../../../../../../tests/integration/Core/Framework/App/Manifest/_fixtures/test';
$fixturePath = \
realpath($fixturePath);
static::
assertNotFalse($fixturePath);
$projectDir =
$this->
getContainer()->
getParameter('kernel.project_dir'
);
static::
assertNotFalse($projectDir);
$relativeFixturePath = \
ltrim( \
str_replace($projectDir, '',
$fixturePath),