1 theme.test ThemeUnitTest::testTemplateOverride()

Ensures a themes template is overrideable based on the 'template' filename.

File

core/modules/simpletest/tests/theme.test, line 109
Tests for the theme API.

Class

ThemeUnitTest
Unit tests for the Theme API.

Code

function testTemplateOverride() {
  config_set('system.core', 'theme_default', 'test_theme');
  $this->backdropGet('theme-test/template-test');
  $this->assertText('Success: Template overridden.', t('Template overridden by defined \'template\' filename.'));
}