function PageRenderTest::testHookPageAttachmentsExceptions 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::testHookPageAttachmentsExceptions()
Tests hook_page_attachments() exceptions.
File
- core/
modules/ system/ src/ Tests/ Common/ PageRenderTest.php, line 22 - Contains \Drupal\system\Tests\Common\PageRenderTest.
Class
- PageRenderTest
- Test page rendering hooks.
Namespace
Drupal\system\Tests\CommonCode
function testHookPageAttachmentsExceptions() {
$this
->enableModules([
'common_test',
'system',
]);
$this
->installSchema('system', 'router');
\Drupal::service('router.builder')
->rebuild();
$this
->assertPageRenderHookExceptions('common_test', 'hook_page_attachments');
}