protected function FieldAccessTest::setUp

Same name in this branch

Sets up Drupal unit test environment.

Overrides DrupalUnitTestBase::setUp

See also

DrupalUnitTestBase::$modules

DrupalUnitTestBase

File

drupal/core/modules/system/lib/Drupal/system/Tests/Entity/FieldAccessTest.php, line 42
Contains \Drupal\system\Tests\Entity\FieldAccessTest.

Class

FieldAccessTest
Tests the functionality of field access.

Namespace

Drupal\system\Tests\Entity

Code

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

  // Install field configuration.
  $this
    ->installConfig(array(
    'field',
  ));

  // The users table is needed for creating dummy user accounts.
  $this
    ->installSchema('user', array(
    'users',
  ));

  // Register entity_test text field.
  entity_test_install();
}