function EngineNyanCatTest::testTemplateOverride in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/system/src/Tests/Theme/EngineNyanCatTest.php \Drupal\system\Tests\Theme\EngineNyanCatTest::testTemplateOverride()
Ensures a theme's template is overridable based on the 'template' filename.
File
- core/
modules/ system/ src/ Tests/ Theme/ EngineNyanCatTest.php, line 34 - Contains \Drupal\system\Tests\Theme\EngineNyanCatTest.
Class
- EngineNyanCatTest
- Tests the multi theme engine support.
Namespace
Drupal\system\Tests\ThemeCode
function testTemplateOverride() {
$this
->config('system.theme')
->set('default', 'test_theme_nyan_cat_engine')
->save();
$this
->drupalGet('theme-test/template-test');
$this
->assertText('Success: Template overridden with Nyan Cat theme. All of them', 'Template overridden by Nyan Cat file.');
}