function CommentLinksAlterTest::setUp

Same name in other branches
  1. 8.9.x core/modules/comment/tests/src/Functional/CommentLinksAlterTest.php \Drupal\Tests\comment\Functional\CommentLinksAlterTest::setUp()
  2. 10 core/modules/comment/tests/src/Functional/CommentLinksAlterTest.php \Drupal\Tests\comment\Functional\CommentLinksAlterTest::setUp()
  3. 11.x core/modules/comment/tests/src/Functional/CommentLinksAlterTest.php \Drupal\Tests\comment\Functional\CommentLinksAlterTest::setUp()

Overrides CommentTestBase::setUp

File

core/modules/comment/tests/src/Functional/CommentLinksAlterTest.php, line 22

Class

CommentLinksAlterTest
Tests comment links altering.

Namespace

Drupal\Tests\comment\Functional

Code

protected function setUp() : void {
    parent::setUp();
    // Enable comment_test.module's hook_comment_links_alter() implementation.
    $this->container
        ->get('state')
        ->set('comment_test_links_alter_enabled', TRUE);
}

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