function PageRenderTest::testHookPageAlter in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/system/src/Tests/Common/PageRenderTest.php \Drupal\system\Tests\Common\PageRenderTest::testHookPageAlter()
Tests hook_page_attachments_alter() exceptions.
File
- core/
modules/ system/ src/ Tests/ Common/ PageRenderTest.php, line 33 - Contains \Drupal\system\Tests\Common\PageRenderTest.
Class
- PageRenderTest
- Test page rendering hooks.
Namespace
Drupal\system\Tests\CommonCode
function testHookPageAlter() {
$this
->enableModules([
'common_test',
'system',
]);
$this
->installSchema('system', 'router');
\Drupal::service('router.builder')
->rebuild();
$this
->assertPageRenderHookExceptions('common_test', 'hook_page_attachments_alter');
}