protected function InlineFormErrorsIntegrationTest::setUp in Drupal 9
Overrides BrowserTestBase::setUp
File
- core/
modules/ quickedit/ tests/ src/ FunctionalJavascript/ InlineFormErrorsIntegrationTest.php, line 41  
Class
- InlineFormErrorsIntegrationTest
 - Tests Inline Form Errors compatibility with Quick Edit.
 
Namespace
Drupal\Tests\quickedit\FunctionalJavascriptCode
protected function setUp() : void {
  parent::setUp();
  // Create a page node type for testing.
  NodeType::create([
    'type' => 'page',
    'name' => 'page',
  ])
    ->save();
  // Create a user with the permission to use in-place editing.
  $permissions = [
    'access content',
    'create page content',
    'edit any page content',
    'access contextual links',
    'access in-place editing',
  ];
  $this->editorUser = $this
    ->drupalCreateUser($permissions);
  $this
    ->drupalLogin($this->editorUser);
}