You are here

protected function InsertFileTestBase::setUp in Insert 8

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

Overrides BrowserTestBase::setUp

File

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

Class

InsertFileTestBase

Namespace

Drupal\Tests\insert\FunctionalJavascript

Code

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