protected function FieldTest::setUp in Drupal 8
Same name in this branch
- 8 core/modules/quickedit/tests/src/FunctionalJavascript/FieldTest.php \Drupal\Tests\quickedit\FunctionalJavascript\FieldTest::setUp()
- 8 core/modules/views/tests/src/Unit/Plugin/field/FieldTest.php \Drupal\Tests\views\Unit\Plugin\field\FieldTest::setUp()
- 8 core/modules/views/tests/src/FunctionalJavascript/Plugin/views/Handler/FieldTest.php \Drupal\Tests\views\FunctionalJavascript\Plugin\views\Handler\FieldTest::setUp()
Same name and namespace in other branches
- 9 core/modules/views/tests/src/FunctionalJavascript/Plugin/views/Handler/FieldTest.php \Drupal\Tests\views\FunctionalJavascript\Plugin\views\Handler\FieldTest::setUp()
- 10 core/modules/views/tests/src/FunctionalJavascript/Plugin/views/Handler/FieldTest.php \Drupal\Tests\views\FunctionalJavascript\Plugin\views\Handler\FieldTest::setUp()
Overrides BrowserTestBase::setUp
File
- core/
modules/ views/ tests/ src/ FunctionalJavascript/ Plugin/ views/ Handler/ FieldTest.php, line 46
Class
- FieldTest
- Tests the field field handler UI.
Namespace
Drupal\Tests\views\FunctionalJavascript\Plugin\views\HandlerCode
protected function setUp() {
parent::setUp();
ViewTestData::createTestViews(get_class($this), [
'views_test_config',
]);
// Disable automatic live preview to make the sequence of calls clearer.
\Drupal::configFactory()
->getEditable('views.settings')
->set('ui.always_live_preview', FALSE)
->save();
$this->account = $this
->drupalCreateUser([
'administer views',
]);
$this
->drupalLogin($this->account);
NodeType::create([
'type' => 'page',
])
->save();
FieldConfig::create([
'entity_type' => 'node',
'field_name' => 'body',
'bundle' => 'page',
])
->save();
}