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/quickedit/tests/src/FunctionalJavascript/FieldTest.php \Drupal\Tests\quickedit\FunctionalJavascript\FieldTest::setUp()
Overrides BrowserTestBase::setUp
File
- core/
modules/ quickedit/ tests/ src/ FunctionalJavascript/ FieldTest.php, line 39
Class
- FieldTest
- Tests quickedit.
Namespace
Drupal\Tests\quickedit\FunctionalJavascriptCode
protected function setUp() {
parent::setUp();
// Create a text format and associate CKEditor.
$filtered_html_format = FilterFormat::create([
'format' => 'filtered_html',
'name' => 'Filtered HTML',
'weight' => 0,
]);
$filtered_html_format
->save();
Editor::create([
'format' => 'filtered_html',
'editor' => 'ckeditor',
])
->save();
// Create note type with body field.
$node_type = NodeType::create([
'type' => 'page',
'name' => 'Page',
]);
$node_type
->save();
node_add_body_field($node_type);
$account = $this
->drupalCreateUser([
'access content',
'administer nodes',
'edit any page content',
'use text format filtered_html',
'access contextual links',
'access in-place editing',
]);
$this
->drupalLogin($account);
}