public function EntityUnitTestBase::setUp

Sets up Drupal unit test environment.

Overrides DrupalUnitTestBase::setUp

See also

DrupalUnitTestBase::$modules

DrupalUnitTestBase

14 calls to EntityUnitTestBase::setUp()
EntityAccessTest::setUp in drupal/core/modules/system/lib/Drupal/system/Tests/Entity/EntityAccessTest.php
Sets up Drupal unit test environment.
EntityApiTest::setUp in drupal/core/modules/system/lib/Drupal/system/Tests/Entity/EntityApiTest.php
Sets up Drupal unit test environment.
EntityBCDecoratorTest::setUp in drupal/core/modules/system/lib/Drupal/system/Tests/Entity/EntityBCDecoratorTest.php
Sets up Drupal unit test environment.
EntityCrudHookTest::setUp in drupal/core/modules/system/lib/Drupal/system/Tests/Entity/EntityCrudHookTest.php
Sets up Drupal unit test environment.
EntityFieldTest::setUp in drupal/core/modules/system/lib/Drupal/system/Tests/Entity/EntityFieldTest.php
Sets up Drupal unit test environment.

... See full list

14 methods override EntityUnitTestBase::setUp()
EntityAccessTest::setUp in drupal/core/modules/system/lib/Drupal/system/Tests/Entity/EntityAccessTest.php
Sets up Drupal unit test environment.
EntityApiTest::setUp in drupal/core/modules/system/lib/Drupal/system/Tests/Entity/EntityApiTest.php
Sets up Drupal unit test environment.
EntityBCDecoratorTest::setUp in drupal/core/modules/system/lib/Drupal/system/Tests/Entity/EntityBCDecoratorTest.php
Sets up Drupal unit test environment.
EntityCrudHookTest::setUp in drupal/core/modules/system/lib/Drupal/system/Tests/Entity/EntityCrudHookTest.php
Sets up Drupal unit test environment.
EntityFieldTest::setUp in drupal/core/modules/system/lib/Drupal/system/Tests/Entity/EntityFieldTest.php
Sets up Drupal unit test environment.

... See full list

File

drupal/core/modules/system/lib/Drupal/system/Tests/Entity/EntityUnitTestBase.php, line 24
Contains \Drupal\system\Tests\Entity\EntityUnitTestBase.

Class

EntityUnitTestBase
Defines an abstract test base for entity unit tests.

Namespace

Drupal\system\Tests\Entity

Code

public function setUp() {
  parent::setUp();
  $this
    ->installSchema('user', 'users');
  $this
    ->installSchema('system', 'sequences');
  $this
    ->installSchema('entity_test', 'entity_test');
  $this
    ->installConfig(array(
    'field',
  ));
}