public function testCreateThemeConfig(): void
{ /** @var string $basePath */
$basePath =
realpath(__DIR__ . '/../fixtures/ThemeConfig'
);
$theme =
$this->
getBundle('TestTheme',
$basePath, true
);
$config =
$this->configFactory->
createFromBundle($theme);
$basePath =
$this->
stripProjectDir($basePath);
static::
assertEquals('TestTheme',
$config->
getTechnicalName());
static::
assertEquals($basePath . '/Resources',
$config->
getBasePath());
static::
assertTrue($config->
getIsTheme());
static::
assertEquals( $basePath . '/Resources/app/storefront/src/main.js',
$config->
getStorefrontEntryFilepath() );
$this->
assertFileCollection([ $basePath . '/Resources/app/storefront/src/scss/overrides.scss' =>
[],
'@Storefront' =>
[],
$basePath . '/Resources/app/storefront/src/scss/base.scss' =>
[ 'vendor' =>
$basePath . '/Resources/app/storefront/vendor',
],