/**
* @internal
*/
class FilesystemConfigMigrationCompilerPassTest extends TestCase
{ private ContainerBuilder
$builder;
protected function setUp(): void
{ $this->builder =
new ContainerBuilder();
$this->builder->
addCompilerPass(new FilesystemConfigMigrationCompilerPass(), PassConfig::TYPE_BEFORE_OPTIMIZATION, 0
);
$this->builder->
setParameter('shopware.filesystem.public',
[]);
$this->builder->
setParameter('shopware.filesystem.public.type', 'local'
);
$this->builder->
setParameter('shopware.filesystem.public.config',
[]);
$this->builder->
setParameter('shopware.cdn.url', 'http://test.de'
);
} public function testConfigMigration(): void
{ $this->builder->
compile(false
);
static::
assertSame($this->builder->
getParameter('shopware.filesystem.public'
),
$this->builder->
getParameter('shopware.filesystem.theme'
));