You are here

protected function FormblockTestBase::setUp in Form Block 8

Same name and namespace in other branches
  1. 2.0.x tests/src/Functional/FormblockTestBase.php \Drupal\Tests\formblock\Functional\FormblockTestBase::setUp()

Overrides BrowserTestBase::setUp

1 call to FormblockTestBase::setUp()
PasswordResetBlockTest::setUp in tests/src/Functional/PasswordResetBlockTest.php
1 method overrides FormblockTestBase::setUp()
PasswordResetBlockTest::setUp in tests/src/Functional/PasswordResetBlockTest.php

File

tests/src/Functional/FormblockTestBase.php, line 27

Class

FormblockTestBase
Defines the common form block test code.

Namespace

Drupal\Tests\formblock\Functional

Code

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

  // Log in as a user that can administer bocks.
  $this->adminUser = $this
    ->drupalCreateUser([
    'administer blocks',
  ]);
  $this
    ->drupalLogin($this->adminUser);
}