public function ThemeTest::testPreprocessCallback in Drupal 10
Ensures that preprocess callbacks can be defined.
File
- core/
modules/ system/ tests/ src/ Functional/ Theme/ ThemeTest.php, line 202
Class
- ThemeTest
- Tests low-level theme functions.
Namespace
Drupal\Tests\system\Functional\ThemeCode
public function testPreprocessCallback() {
$this
->drupalGet('theme-test/preprocess-callback');
$this
->assertSession()
->pageTextContains('Make Drupal full of kittens again!');
}