You are here

protected function WizardTest::setUp in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/comment/tests/src/Functional/Views/WizardTest.php \Drupal\Tests\comment\Functional\Views\WizardTest::setUp()
  2. 9 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');
}