function CommentTypeTest::setUp

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

Sets the test up.

Overrides CommentTestBase::setUp

File

core/modules/comment/tests/src/Functional/CommentTypeTest.php, line 50

Class

CommentTypeTest
Ensures that comment type functions work correctly.

Namespace

Drupal\Tests\comment\Functional

Code

protected function setUp() : void {
  parent::setUp();
  $this->drupalPlaceBlock('page_title_block');
  $this->drupalPlaceBlock('system_breadcrumb_block');
  $this->adminUser = $this->drupalCreateUser($this->permissions);
}

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