You are here

protected function YamlDeriverTest::setUp in UI Patterns 8

Overrides KernelTestBase::setUp

File

tests/src/Kernel/Plugin/Deriver/YamlDeriverTest.php, line 27

Class

YamlDeriverTest
@coversDefaultClass \Drupal\ui_patterns\Plugin\Deriver\AbstractYamlPatternsDeriver

Namespace

Drupal\Tests\ui_patterns\Kernel\Plugin\Deriver

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();
}