You are here

public function KernelTestBaseTest::testNoThemeByDefault in SimpleTest 8.3

Tests that there is no theme by default.

File

src/Tests/KernelTestBaseTest.php, line 315

Class

KernelTestBaseTest
Tests KernelTestBase functionality.

Namespace

Drupal\simpletest\Tests

Code

public function testNoThemeByDefault() {
  $themes = $this
    ->config('core.extension')
    ->get('theme');
  $this
    ->assertEqual($themes, []);
  $extensions = $this->container
    ->get('config.storage')
    ->read('core.extension');
  $this
    ->assertEqual($extensions['theme'], []);
  $active_theme = $this->container
    ->get('theme.manager')
    ->getActiveTheme();
  $this
    ->assertEqual($active_theme
    ->getName(), 'core');
}