public function KernelTestBaseTest::testNoThemeByDefault in Drupal 8
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\TestsCode
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');
}