function FieldTestBase::setUp
Same name in this branch
- 8.9.x core/modules/field/tests/src/Functional/Views/FieldTestBase.php \Drupal\Tests\field\Functional\Views\FieldTestBase::setUp()
Same name in other branches
- 9 core/modules/field/tests/src/Functional/Views/FieldTestBase.php \Drupal\Tests\field\Functional\Views\FieldTestBase::setUp()
- 10 core/modules/field/tests/src/Functional/Views/FieldTestBase.php \Drupal\Tests\field\Functional\Views\FieldTestBase::setUp()
- 11.x core/modules/field/tests/src/Functional/Views/FieldTestBase.php \Drupal\Tests\field\Functional\Views\FieldTestBase::setUp()
Overrides ViewTestBase::setUp
File
-
core/
modules/ field/ src/ Tests/ Views/ FieldTestBase.php, line 52
Class
- FieldTestBase
- Provides some helper methods for testing fieldapi integration into views.
Namespace
Drupal\field\Tests\ViewsCode
protected function setUp($import_test_views = TRUE) {
parent::setUp($import_test_views);
// Ensure the page node type exists.
NodeType::create([
'type' => 'page',
'name' => 'page',
])->save();
ViewTestData::createTestViews(get_class($this), [
'field_test_views',
]);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.