You are here

protected function InsertFileTestBase::setUp in Insert 8.2

Same name and namespace in other branches
  1. 8 tests/src/FunctionalJavaScript/InsertFileTestBase.php \Drupal\Tests\insert\FunctionalJavascript\InsertFileTestBase::setUp()

Overrides BrowserTestBase::setUp

2 calls to InsertFileTestBase::setUp()
InsertImageCKEditorTestBase::setUp in tests/src/FunctionalJavaScript/InsertImageCKEditorTestBase.php
@inheritdoc
InsertResponsiveImageTestBase::setUp in modules/insert_responsive_image/tests/src/FunctionalJavaScript/InsertResponsiveImageTestBase.php
@inheritdoc
2 methods override InsertFileTestBase::setUp()
InsertImageCKEditorTestBase::setUp in tests/src/FunctionalJavaScript/InsertImageCKEditorTestBase.php
@inheritdoc
InsertResponsiveImageTestBase::setUp in modules/insert_responsive_image/tests/src/FunctionalJavaScript/InsertResponsiveImageTestBase.php
@inheritdoc

File

tests/src/FunctionalJavaScript/InsertFileTestBase.php, line 43

Class

InsertFileTestBase

Namespace

Drupal\Tests\insert\FunctionalJavascript

Code

protected function setUp() {
  parent::setUp();
  $this->contentTypeName = 'article';
  $this
    ->createContentType([
    'type' => $this->contentTypeName,
    'name' => 'Article',
  ]);
  $this->adminUser = $this
    ->createUser([], NULL, TRUE);
  $this
    ->drupalLogin($this->adminUser);
}