You are here

protected function AutoLoginUrlTest::setUp in Auto Login URL 2.x

Same name and namespace in other branches
  1. 8 src/Tests/AutoLoginUrlTest.php \Drupal\auto_login_url\Tests\AutoLoginUrlTest::setUp()

Overrides BrowserTestBase::setUp

File

src/Tests/AutoLoginUrlTest.php, line 33

Class

AutoLoginUrlTest
AutoLoginUrlTestCase Class.

Namespace

Drupal\auto_login_url\Tests

Code

protected function setUp() : void {
  parent::setUp();
  $role = Role::load('authenticated');
  $role
    ->grantPermission('use auto login url');
  $role
    ->save();
  $role = Role::load('anonymous');
  $role
    ->grantPermission('use auto login url');
  $role
    ->save();
  $this->additionalCurlOptions = [
    CURLOPT_FOLLOWLOCATION => TRUE,
  ];
}