You are here

protected function FieldEntityTest::setUp in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/views/tests/src/Functional/Entity/FieldEntityTest.php \Drupal\Tests\views\Functional\Entity\FieldEntityTest::setUp()

Overrides ViewTestBase::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\Entity

Code

protected function setUp($import_test_views = TRUE) {
  parent::setUp(FALSE);
  $this
    ->drupalCreateContentType([
    'type' => 'page',
  ]);
  $this
    ->addDefaultCommentField('node', 'page');
  ViewTestData::createTestViews(get_class($this), [
    'views_test_config',
  ]);
}