You are here

protected function WizardTest::setUp in Drupal 9

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()

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) : void {
  parent::setUp($import_test_views);
  $this
    ->drupalCreateContentType([
    'type' => 'page',
    'name' => t('Basic page'),
  ]);

  // Add comment field to page node type.
  $this
    ->addDefaultCommentField('node', 'page');
}