protected function FieldAccessTest::setUp in Zircon Profile 8
Same name in this branch
- 8 core/modules/field/src/Tests/FieldAccessTest.php \Drupal\field\Tests\FieldAccessTest::setUp()
- 8 core/modules/system/src/Tests/Entity/FieldAccessTest.php \Drupal\system\Tests\Entity\FieldAccessTest::setUp()
Same name and namespace in other branches
- 8.0 core/modules/system/src/Tests/Entity/FieldAccessTest.php \Drupal\system\Tests\Entity\FieldAccessTest::setUp()
Performs setup tasks before each individual test method is run.
Overrides KernelTestBase::setUp
File
- core/
modules/ system/ src/ Tests/ Entity/ FieldAccessTest.php, line 37 - Contains \Drupal\system\Tests\Entity\FieldAccessTest.
Class
- FieldAccessTest
- Tests Field level access hooks.
Namespace
Drupal\system\Tests\EntityCode
protected function setUp() {
parent::setUp();
// Install field configuration.
$this
->installConfig(array(
'field',
));
// The users table is needed for creating dummy user accounts.
$this
->installEntitySchema('user');
// Register entity_test text field.
module_load_install('entity_test');
entity_test_install();
}