1 theme.test ThemeUnitTest::testAlter()

Ensures theme hook_*_alter() implementations can run before anything is rendered.

File

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

Class

ThemeUnitTest
Unit tests for the Theme API.

Code

function testAlter() {
  $this->backdropGet('theme-test/alter');
  $this->assertText('The altered data is test_theme_theme_test_alter_alter was invoked.', 'The theme was able to implement an alter hook during page building before anything was rendered.');
}