You are here

protected function StateTransitionFormTest::setUp in State Machine 8

Same name in this branch
  1. 8 tests/src/Functional/StateTransitionFormTest.php \Drupal\Tests\state_machine\Functional\StateTransitionFormTest::setUp()
  2. 8 tests/src/FunctionalJavascript/StateTransitionFormTest.php \Drupal\Tests\state_machine\FunctionalJavascript\StateTransitionFormTest::setUp()

Overrides BrowserTestBase::setUp

File

tests/src/Functional/StateTransitionFormTest.php, line 36

Class

StateTransitionFormTest
Tests the state transition form.

Namespace

Drupal\Tests\state_machine\Functional

Code

protected function setUp() {
  parent::setUp();
  $user = $this
    ->drupalCreateUser([
    'administer entity_test content',
    'view test entity',
  ]);
  $this
    ->drupalLogin($user);
}