You are here

protected function QuickEditImageTest::setUp in Drupal 8

Overrides BrowserTestBase::setUp

File

core/modules/image/tests/src/FunctionalJavascript/QuickEditImageTest.php, line 40

Class

QuickEditImageTest
@coversDefaultClass \Drupal\image\Plugin\InPlaceEditor\Image @group image

Namespace

Drupal\Tests\image\FunctionalJavascript

Code

protected function setUp() {
  parent::setUp();

  // Create the Article node type.
  $this
    ->drupalCreateContentType([
    'type' => 'article',
    'name' => 'Article',
  ]);

  // Log in as a content author who can use Quick Edit and edit Articles.
  $this->contentAuthorUser = $this
    ->drupalCreateUser([
    'access contextual links',
    'access toolbar',
    'access in-place editing',
    'access content',
    'create article content',
    'edit any article content',
    'delete any article content',
  ]);
  $this
    ->drupalLogin($this->contentAuthorUser);
}