You are here

public function EntitySchemaTest::setUp in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/system/src/Tests/Entity/EntitySchemaTest.php \Drupal\system\Tests\Entity\EntitySchemaTest::setUp()

Performs setup tasks before each individual test method is run.

Overrides EntityUnitTestBase::setUp

File

core/modules/system/src/Tests/Entity/EntitySchemaTest.php, line 29
Contains \Drupal\system\Tests\Entity\EntitySchemaTest.

Class

EntitySchemaTest
Tests adding a custom bundle field.

Namespace

Drupal\system\Tests\Entity

Code

public function setUp() {
  parent::setUp();
  $this
    ->installSchema('user', array(
    'users_data',
  ));
  $this
    ->installSchema('system', array(
    'router',
  ));
  $this->database = $this->container
    ->get('database');
}