You are here

protected function RenderedEntityTest::setUp in Entity API 8.0

Parameters

bool $import_test_views: Should the views specified on the test class be imported. If you need to setup some additional stuff, like fields, you need to call false and then call createTestViews for your own.

Overrides ViewKernelTestBase::setUp

File

src/Tests/Plugin/views/field/RenderedEntityTest.php, line 53
Contains \Drupal\entity\Tests\Plugin\views\field\RenderedEntityTest.

Class

RenderedEntityTest
Tests the Drupal\entity\Plugin\views\field\RenderedEntity handler.

Namespace

Drupal\entity\Tests\Plugin\views\field

Code

protected function setUp($import_test_views = TRUE) {
  parent::setUp($import_test_views);
  if ($import_test_views) {
    ViewTestData::createTestViews(get_class($this), [
      'entity_module_test',
    ]);
  }
}