Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
Commit b0786ce2 authored by Andreas Hennings's avatar Andreas Hennings
Browse files

OEL-1227: Make 'oe_whitelabel' the default theme in test.

parent 67147155
No related branches found
No related tags found
2 merge requests!128Update EPIC-1293-Project,!101OEL-1227: Move content banner into a block.
...@@ -14,24 +14,6 @@ abstract class WhitelabelBrowserTestBase extends BrowserTestBase { ...@@ -14,24 +14,6 @@ abstract class WhitelabelBrowserTestBase extends BrowserTestBase {
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */
protected $defaultTheme = 'stark'; protected $defaultTheme = 'oe_whitelabel';
/**
* {@inheritdoc}
*/
protected function setUp(): void {
parent::setUp();
// Enable and set OpenEuropa Theme as default.
\Drupal::service('theme_installer')->install(['oe_whitelabel']);
\Drupal::configFactory()
->getEditable('system.theme')
->set('default', 'oe_whitelabel')
->save();
// Rebuild the ui_pattern definitions to collect the ones provided by
// oe_whitelabel itself.
\Drupal::service('plugin.manager.ui_patterns')->clearCachedDefinitions();
}
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment