You are here

public function IntegrationTest::setUp in Fences 8.2

Overrides BrowserTestBase::setUp

File

tests/src/FunctionalJavascript/IntegrationTest.php, line 44

Class

IntegrationTest
A fences integration test.

Namespace

Drupal\Tests\fences\FunctionalJavascript

Code

public function setUp() {
  parent::setUp();
  $this
    ->drupalCreateContentType([
    'type' => 'article',
    'name' => 'Article',
  ]);
  $this->node = $this
    ->drupalCreateNode([
    'title' => $this
      ->randomString(),
    'type' => 'article',
    'body' => 'Body field value.',
  ]);
  $this->adminUser = $this
    ->drupalCreateUser([
    'access content',
    'administer node display',
  ]);
  $this
    ->drupalLogin($this->adminUser);
}