protected function FieldEntityTest::setUp in Drupal 10
Same name and namespace in other branches
- 8 core/modules/views/tests/src/Functional/Entity/FieldEntityTest.php \Drupal\Tests\views\Functional\Entity\FieldEntityTest::setUp()
- 9 core/modules/views/tests/src/Functional/Entity/FieldEntityTest.php \Drupal\Tests\views\Functional\Entity\FieldEntityTest::setUp()
File
- core/
modules/ views/ tests/ src/ Functional/ Entity/ FieldEntityTest.php, line 44
Class
- FieldEntityTest
- Tests the field plugin base integration with the entity system.
Namespace
Drupal\Tests\views\Functional\EntityCode
protected function setUp($import_test_views = TRUE, $modules = [
'views_test_config',
]) : void {
parent::setUp(FALSE, $modules);
$this
->drupalCreateContentType([
'type' => 'page',
]);
$this
->addDefaultCommentField('node', 'page');
ViewTestData::createTestViews(static::class, $modules);
}