public function PageRenderTest::testHookPageAttachmentsExceptions in Drupal 9
Same name and namespace in other branches
- 8 core/modules/system/tests/src/Kernel/Common/PageRenderTest.php \Drupal\Tests\system\Kernel\Common\PageRenderTest::testHookPageAttachmentsExceptions()
- 10 core/modules/system/tests/src/Kernel/Common/PageRenderTest.php \Drupal\Tests\system\Kernel\Common\PageRenderTest::testHookPageAttachmentsExceptions()
Tests hook_page_attachments() exceptions.
File
- core/
modules/ system/ tests/ src/ Kernel/ Common/ PageRenderTest.php, line 17
Class
- PageRenderTest
- Test page rendering hooks.
Namespace
Drupal\Tests\system\Kernel\CommonCode
public function testHookPageAttachmentsExceptions() {
$this
->enableModules([
'common_test',
'system',
]);
$this
->assertPageRenderHookExceptions('common_test', 'hook_page_attachments');
}