function WizardTest::setUp

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

Overrides WizardTestBase::setUp

File

core/modules/comment/tests/src/Functional/Views/WizardTest.php, line 34

Class

WizardTest
Tests the comment module integration into the wizard.

Namespace

Drupal\Tests\comment\Functional\Views

Code

protected function setUp($import_test_views = TRUE, $modules = []) : void {
    parent::setUp($import_test_views, $modules);
    $this->drupalCreateContentType([
        'type' => 'page',
        'name' => 'Basic page',
    ]);
    // Add comment field to page node type.
    $this->addDefaultCommentField('node', 'page');
}

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