use Shopware\Tests\Unit\Common\Stubs\SystemConfigService\StaticSystemConfigService;
/**
* @internal
*
* @covers \Shopware\Storefront\Theme\SeedingThemePathBuilder
*/
class SeedingThemePathBuilderTest extends TestCase
{ public function testAssemblePathDoesNotChangeWithoutChangedSeed(): void
{ $pathBuilder =
new SeedingThemePathBuilder(new StaticSystemConfigService());
$path =
$pathBuilder->
assemblePath(TestDefaults::SALES_CHANNEL, 'theme'
);
static::
assertEquals($path,
$pathBuilder->
assemblePath(TestDefaults::SALES_CHANNEL, 'theme'
));
} public function testAssembledPathAfterSavingIsTheSameAsPreviouslyGenerated(): void
{ $pathBuilder =
new SeedingThemePathBuilder(new StaticSystemConfigService());
$generatedPath =
$pathBuilder->
generateNewPath(TestDefaults::SALES_CHANNEL, 'theme', 'foo'
);