You are here

protected function EntityValidationTest::setUp in Zircon Profile 8

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

Performs setup tasks before each individual test method is run.

Overrides EntityUnitTestBase::setUp

File

core/modules/system/src/Tests/Entity/EntityValidationTest.php, line 44
Contains \Drupal\system\Tests\Entity\EntityValidationTest.

Class

EntityValidationTest
Tests the Entity Validation API.

Namespace

Drupal\system\Tests\Entity

Code

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

  // Create the test field.
  module_load_install('entity_test');
  entity_test_install();

  // Install required default configuration for filter module.
  $this
    ->installConfig(array(
    'system',
    'filter',
  ));
}