try{ $compiler->compileTheme( TestDefaults::SALES_CHANNEL, 'test', $config, newStorefrontPluginConfigurationCollection(), true, Context::createDefaultContext() ); }catch(\Throwable $throwable){ static::fail('ThemeCompiler->compile() should be executable without a database connection. But following Excpetion was thrown: ' . $throwable->getMessage()); }finally{ $this->resetEnvVars();
// Recompile all themes as the extension generally extends the storefront
$mappings = $this->connection->fetchAllAssociative( 'SELECT LOWER(HEX(sales_channel_id)) as sales_channel_id, LOWER(HEX(theme_id)) as theme_id
FROM theme_sales_channel' );
$themeSalesChannels = $theme->getSalesChannels(); // only run if the themes are not already initialised
if($themeSalesChannels && $themeSalesChannels->count() > 0){ return; }