You are here

protected function UiPatternsManagerTest::setUp in UI Patterns 8

Overrides KernelTestBase::setUp

File

tests/src/Kernel/UiPatternsManagerTest.php, line 26

Class

UiPatternsManagerTest
@coversDefaultClass \Drupal\ui_patterns\UiPatternsManager

Namespace

Drupal\Tests\ui_patterns\Kernel

Code

protected function setUp() : void {
  parent::setUp();

  // Theme with existing patterns has to be enabled.
  $default_theme = 'ui_patterns_library_theme_test';
  $this->container
    ->get('theme_installer')
    ->install([
    $default_theme,
  ]);
  $this->container
    ->get('config.factory')
    ->getEditable('system.theme')
    ->set('default', $default_theme)
    ->save();
}