You are here

protected function AreaEntityTest::setUpFixtures in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 core/modules/views/src/Tests/Handler/AreaEntityTest.php \Drupal\views\Tests\Handler\AreaEntityTest::setUpFixtures()

Sets up the configuration and schema of views and views_test_data modules.

Because the schema of views_test_data.module is dependent on the test using it, it cannot be enabled normally.

Overrides ViewKernelTestBase::setUpFixtures

File

core/modules/views/src/Tests/Handler/AreaEntityTest.php, line 49
Contains \Drupal\views\Tests\Handler\AreaEntityTest.

Class

AreaEntityTest
Tests the generic entity area handler.

Namespace

Drupal\views\Tests\Handler

Code

protected function setUpFixtures() {
  $this
    ->installEntitySchema('user');
  $this
    ->installEntitySchema('entity_test');
  $this
    ->installConfig([
    'entity_test',
  ]);
  Block::create([
    'id' => 'test_block',
    'plugin' => 'system_main_block',
  ])
    ->save();
  parent::setUpFixtures();
}