You are here

protected function CancelButtonSettingsFormTest::setUp in Entity Form Cancel Button 8

Overrides BrowserTestBase::setUp

File

tests/src/Functional/CancelButtonSettingsFormTest.php, line 41

Class

CancelButtonSettingsFormTest
Tests for the CancelButtonSettingsForm.

Namespace

Drupal\Tests\cancel_button\Functional

Code

protected function setUp() {
  parent::setUp();
  $this->adminUser = $this
    ->createUser([
    'access administration pages',
    'administer site configuration',
    'administer cancel button configuration',
  ]);
  $this->translationManager = \Drupal::translation();
  $this
    ->drupalLogin($this->adminUser);
}