function 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',
  ]);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.