You are here

protected function ViewsIntegrationTest::setUp in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/dblog/src/Tests/Views/ViewsIntegrationTest.php \Drupal\dblog\Tests\Views\ViewsIntegrationTest::setUp()

Parameters

bool $import_test_views: Should the views specififed 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

core/modules/dblog/src/Tests/Views/ViewsIntegrationTest.php, line 42
Contains \Drupal\dblog\Tests\Views\ViewsIntegrationTest.

Class

ViewsIntegrationTest
Tests the views integration of dblog module.

Namespace

Drupal\dblog\Tests\Views

Code

protected function setUp() {
  parent::setUp();

  // Rebuild the router, otherwise we can't generate links.
  $this->container
    ->get('router.builder')
    ->rebuild();
  $this
    ->installSchema('dblog', array(
    'watchdog',
  ));
  ViewTestData::createTestViews(get_class($this), array(
    'dblog_test_views',
  ));
}