You are here

protected function MinisiteTestBase::setUp in Mini site 8

Overrides BrowserTestBase::setUp

5 calls to MinisiteTestBase::setUp()
FieldCardinalityTest::setUp in tests/src/Functional/FieldCardinalityTest.php
FieldValidationTest::setUp in tests/src/Functional/FieldValidationTest.php
UploadBrowseAliasPathautoTest::setUp in tests/src/Functional/UploadBrowseAliasPathautoTest.php
UploadBrowseAliasTest::setUp in tests/src/Functional/UploadBrowseAliasTest.php
UploadBrowseTest::setUp in tests/src/Functional/UploadBrowseTest.php
5 methods override MinisiteTestBase::setUp()
FieldCardinalityTest::setUp in tests/src/Functional/FieldCardinalityTest.php
FieldValidationTest::setUp in tests/src/Functional/FieldValidationTest.php
UploadBrowseAliasPathautoTest::setUp in tests/src/Functional/UploadBrowseAliasPathautoTest.php
UploadBrowseAliasTest::setUp in tests/src/Functional/UploadBrowseAliasTest.php
UploadBrowseTest::setUp in tests/src/Functional/UploadBrowseTest.php

File

tests/src/Functional/MinisiteTestBase.php, line 85

Class

MinisiteTestBase
Provides methods specifically for testing Minisite module's field handling.

Namespace

Drupal\Tests\minisite\Functional

Code

protected function setUp() {
  parent::setUp();
  $this
    ->fixtureSetUp();
  $this->adminUser = $this
    ->drupalCreateUser($this->adminUserPermissions);
  $this
    ->drupalLogin($this->adminUser);
  $this
    ->drupalCreateContentType([
    'type' => $this->contentType,
    'name' => 'Article',
  ]);
}