function ThemeTest::testAlter

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

File

drupal/core/modules/system/lib/Drupal/system/Tests/Theme/ThemeTest.php, line 121
Definition of Drupal\system\Tests\Theme\ThemeTest.

Class

ThemeTest
Tests low-level theme functions.

Namespace

Drupal\system\Tests\Theme

Code

function testAlter() {
  $this
    ->drupalGet('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.');
}