function WizardTest::setUp
Same name in other branches
- 9 core/modules/comment/tests/src/Functional/Views/WizardTest.php \Drupal\Tests\comment\Functional\Views\WizardTest::setUp()
- 10 core/modules/comment/tests/src/Functional/Views/WizardTest.php \Drupal\Tests\comment\Functional\Views\WizardTest::setUp()
- 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\ViewsCode
protected function setUp($import_test_views = TRUE) {
parent::setUp($import_test_views);
$this->drupalCreateContentType([
'type' => 'page',
'name' => t('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.