function PageRenderTest::testHookPageAlter
Same name in other branches
- 8.9.x core/modules/system/tests/src/Kernel/Common/PageRenderTest.php \Drupal\Tests\system\Kernel\Common\PageRenderTest::testHookPageAlter()
- 10 core/modules/system/tests/src/Kernel/Common/PageRenderTest.php \Drupal\Tests\system\Kernel\Common\PageRenderTest::testHookPageAlter()
- 11.x core/modules/system/tests/src/Kernel/Common/PageRenderTest.php \Drupal\Tests\system\Kernel\Common\PageRenderTest::testHookPageAlter()
Tests hook_page_attachments_alter() exceptions.
File
-
core/
modules/ system/ tests/ src/ Kernel/ Common/ PageRenderTest.php, line 28
Class
- PageRenderTest
- Test page rendering hooks.
Namespace
Drupal\Tests\system\Kernel\CommonCode
public function testHookPageAlter() {
$this->enableModules([
'common_test',
'system',
]);
$this->assertPageRenderHookExceptions('common_test', 'hook_page_attachments_alter');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.