You are here

public function DevelStateEditorTest::setUp in Devel 8

Same name and namespace in other branches
  1. 8.3 tests/src/Functional/DevelStateEditorTest.php \Drupal\Tests\devel\Functional\DevelStateEditorTest::setUp()
  2. 8.2 tests/src/Functional/DevelStateEditorTest.php \Drupal\Tests\devel\Functional\DevelStateEditorTest::setUp()
  3. 4.x tests/src/Functional/DevelStateEditorTest.php \Drupal\Tests\devel\Functional\DevelStateEditorTest::setUp()

Overrides BrowserTestBase::setUp

File

tests/src/Functional/DevelStateEditorTest.php, line 44

Class

DevelStateEditorTest
Tests devel state editor.

Namespace

Drupal\Tests\devel\Functional

Code

public function setUp() {
  parent::setUp();
  $this->state = $this->container
    ->get('state');
  $this
    ->drupalPlaceBlock('page_title_block');
  $this->develUser = $this
    ->drupalCreateUser([
    'access devel information',
  ]);
  $this->adminUser = $this
    ->drupalCreateUser([
    'access devel information',
    'administer site configuration',
  ]);
}