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

Skip to content
Snippets Groups Projects
Commit a8dab950 authored by escuriola's avatar escuriola
Browse files

OEL-469: Make test compatible with d9.

parent fd701622
No related branches found
No related tags found
1 merge request!4OEL-469: D9 compatibility
......@@ -22,9 +22,13 @@ class SiteBrandingBlockTest extends KernelTestBase {
*/
protected function setUp(): void {
parent::setUp();
/** @var \Drupal\Core\Extension\ThemeInstallerInterface $theme_installer */
\Drupal::service('theme_installer')->install(['oe_whitelabel']);
$this->container->get('theme_installer')->install(['oe_whitelabel']);
$this->container->get('theme_handler')->setDefault('oe_whitelabel');
\Drupal::configFactory()
->getEditable('system.theme')
->set('default', 'oe_whitelabel')
->save();
$this->container->set('theme.registry', NULL);
$this->config('system.site')
->set('name', 'Site name')
......
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