You are here

protected function IntegrationTest::setUp in Zircon Profile 8

Same name in this branch
  1. 8 core/modules/aggregator/src/Tests/Views/IntegrationTest.php \Drupal\aggregator\Tests\Views\IntegrationTest::setUp()
  2. 8 core/modules/statistics/src/Tests/Views/IntegrationTest.php \Drupal\statistics\Tests\Views\IntegrationTest::setUp()
Same name and namespace in other branches
  1. 8.0 core/modules/aggregator/src/Tests/Views/IntegrationTest.php \Drupal\aggregator\Tests\Views\IntegrationTest::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/aggregator/src/Tests/Views/IntegrationTest.php, line 55
Contains \Drupal\aggregator\Tests\Views\IntegrationTest.

Class

IntegrationTest
Tests basic integration of views data from the aggregator module.

Namespace

Drupal\aggregator\Tests\Views

Code

protected function setUp() {
  parent::setUp();
  $this
    ->installEntitySchema('aggregator_item');
  $this
    ->installEntitySchema('aggregator_feed');
  ViewTestData::createTestViews(get_class($this), array(
    'aggregator_test_views',
  ));
  $this->itemStorage = $this->container
    ->get('entity.manager')
    ->getStorage('aggregator_item');
  $this->feedStorage = $this->container
    ->get('entity.manager')
    ->getStorage('aggregator_feed');
}