function KernelTestBaseTest::testNoThemeByDefault in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/simpletest/src/Tests/KernelTestBaseTest.php \Drupal\simpletest\Tests\KernelTestBaseTest::testNoThemeByDefault()
Tests that there is no theme by default.
File
- core/
modules/ simpletest/ src/ Tests/ KernelTestBaseTest.php, line 315 - Contains \Drupal\simpletest\Tests\KernelTestBaseTest.
Class
- KernelTestBaseTest
- Tests KernelTestBase functionality.
Namespace
Drupal\simpletest\TestsCode
function testNoThemeByDefault() {
$themes = $this
->config('core.extension')
->get('theme');
$this
->assertEqual($themes, array());
$extensions = $this->container
->get('config.storage')
->read('core.extension');
$this
->assertEqual($extensions['theme'], array());
$active_theme = $this->container
->get('theme.manager')
->getActiveTheme();
$this
->assertEqual($active_theme
->getName(), 'core');
}