function PageRenderTest::testHookPageAttachmentsExceptions

Same name in other branches
  1. 9 core/modules/system/tests/src/Kernel/Common/PageRenderTest.php \Drupal\Tests\system\Kernel\Common\PageRenderTest::testHookPageAttachmentsExceptions()
  2. 8.9.x core/modules/system/tests/src/Kernel/Common/PageRenderTest.php \Drupal\Tests\system\Kernel\Common\PageRenderTest::testHookPageAttachmentsExceptions()
  3. 11.x 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 21

Class

PageRenderTest
Test page rendering hooks.

Namespace

Drupal\Tests\system\Kernel\Common

Code

public function testHookPageAttachmentsExceptions() : void {
    $this->enableModules([
        'common_test',
        'system',
    ]);
    $this->assertPageRenderHookExceptions('common_test', 'hook_page_attachments');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.