protected function FieldUITest::setUp in Zircon Profile 8
Same name in this branch
- 8 core/modules/field_ui/tests/src/Unit/FieldUiTest.php \Drupal\Tests\field_ui\Unit\FieldUiTest::setUp()
- 8 core/modules/field/src/Tests/Views/FieldUITest.php \Drupal\field\Tests\Views\FieldUITest::setUp()
Same name and namespace in other branches
- 8.0 core/modules/field/src/Tests/Views/FieldUITest.php \Drupal\field\Tests\Views\FieldUITest::setUp()
Sets up a Drupal site for running functional and integration tests.
Installs Drupal with the installation profile specified in \Drupal\simpletest\WebTestBase::$profile into the prefixed database.
Afterwards, installs any additional modules specified in the static \Drupal\simpletest\WebTestBase::$modules property of each class in the class hierarchy.
After installation all caches are flushed and several configuration values are reset to the values of the parent site executing the test, since the default values may be incompatible with the environment in which tests are being executed.
Overrides FieldTestBase::setUp
File
- core/
modules/ field/ src/ Tests/ Views/ FieldUITest.php, line 44 - Contains \Drupal\field\Tests\Views\FieldUITest.
Class
- FieldUITest
- Tests the UI of the field field handler.
Namespace
Drupal\field\Tests\ViewsCode
protected function setUp() {
parent::setUp();
$this->account = $this
->drupalCreateUser(array(
'administer views',
));
$this
->drupalLogin($this->account);
$this
->setUpFieldStorages(1, 'text');
$this
->setUpFields();
}