public function EngineNyanCatTest::testTemplateOverride in Drupal 8
Same name and namespace in other branches
- 9 core/modules/system/tests/src/Functional/Theme/EngineNyanCatTest.php \Drupal\Tests\system\Functional\Theme\EngineNyanCatTest::testTemplateOverride()
Ensures a theme's template is overridable based on the 'template' filename.
File
- core/
modules/ system/ tests/ src/ Functional/ Theme/ EngineNyanCatTest.php, line 34
Class
- EngineNyanCatTest
- Tests the multi theme engine support.
Namespace
Drupal\Tests\system\Functional\ThemeCode
public 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.');
}