function ThemeTest::testFunctionOverride in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/system/src/Tests/Theme/ThemeTest.php \Drupal\system\Tests\Theme\ThemeTest::testFunctionOverride()
Ensures a theme template can override a theme function.
File
- core/
modules/ system/ src/ Tests/ Theme/ ThemeTest.php, line 205 - Contains \Drupal\system\Tests\Theme\ThemeTest.
Class
- ThemeTest
- Tests low-level theme functions.
Namespace
Drupal\system\Tests\ThemeCode
function testFunctionOverride() {
$this
->drupalGet('theme-test/function-template-overridden');
$this
->assertText('Success: Template overrides theme function.', 'Theme function overridden by test_theme template.');
}