function KernelTestBaseTest::testNoThemeByDefault

Tests that there is no theme by default.

File

core/modules/simpletest/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');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.