public function testSetCustomConfigForTheme(): void
{ $this->builder->
setParameter('shopware.filesystem.theme',
['foo' => 'foo'
]);
$this->builder->
setParameter('shopware.filesystem.theme.type', 'amazon-s3'
);
$this->builder->
setParameter('shopware.filesystem.theme.config',
['test' => 'test'
]);
$this->builder->
setParameter('shopware.filesystem.theme.url', 'http://cdn.de'
);
$this->builder->
compile(false
);
static::
assertNotSame($this->builder->
getParameter('shopware.filesystem.public'
),
$this->builder->
getParameter('shopware.filesystem.theme'
));
static::
assertNotSame($this->builder->
getParameter('shopware.filesystem.public.type'
),
$this->builder->
getParameter('shopware.filesystem.theme.type'
));
static::
assertNotSame($this->builder->
getParameter('shopware.filesystem.public.config'
),
$this->builder->
getParameter('shopware.filesystem.theme.config'
));
static::
assertSame('amazon-s3',
$this->builder->
getParameter('shopware.filesystem.theme.type'
));
static::
assertSame('http://cdn.de',
$this->builder->
getParameter('shopware.filesystem.theme.url'
));
static::
assertSame(['test' => 'test'
],
$this->builder->
getParameter('shopware.filesystem.theme.config'
));
static::
assertSame($this->builder->
getParameter('shopware.filesystem.public'
),
$this->builder->
getParameter('shopware.filesystem.asset'
));
static::
assertSame($this->builder->
getParameter('shopware.filesystem.public.type'
),
$this->builder->
getParameter('shopware.filesystem.asset.type'
));
static::
assertSame($this->builder->
getParameter('shopware.filesystem.public.config'
),
$this->builder->
getParameter('shopware.filesystem.asset.config'
));