protected function QuickEditFileTest::setUp in Drupal 9
Same name and namespace in other branches
- 8 core/modules/quickedit/tests/src/FunctionalJavascript/QuickEditFileTest.php \Drupal\Tests\quickedit\FunctionalJavascript\QuickEditFileTest::setUp()
- 10 core/modules/quickedit/tests/src/FunctionalJavascript/QuickEditFileTest.php \Drupal\Tests\quickedit\FunctionalJavascript\QuickEditFileTest::setUp()
Overrides BrowserTestBase::setUp
File
- core/
modules/ quickedit/ tests/ src/ FunctionalJavascript/ QuickEditFileTest.php, line 34
Class
- QuickEditFileTest
- @group quickedit
Namespace
Drupal\Tests\quickedit\FunctionalJavascriptCode
protected function setUp() : void {
parent::setUp();
// Create the Article node type.
$this
->drupalCreateContentType([
'type' => 'article',
'name' => 'Article',
]);
// Add file field to Article node type.
$this
->createFileField('field_file', 'node', 'article', [
'file_extensions' => 'txt',
]);
// Log in as a content author who can use Quick Edit and edit Articles.
$user = $this
->drupalCreateUser([
'access contextual links',
'access toolbar',
'access in-place editing',
'access content',
'create article content',
'edit any article content',
]);
$this
->drupalLogin($user);
}