You are here

public function ViewportPermissionsTest::setUp in Viewport 8

Sets up the required environment for the tests.

Overrides BrowserTestBase::setUp

File

tests/src/Functional/ViewportPermissionsTest.php, line 38

Class

ViewportPermissionsTest
Tests the Viewport permissions exist.

Namespace

Drupal\Tests\viewport\Functional

Code

public function setUp() {
  parent::setUp();
  $this->userWithViewportPerm = $this
    ->drupalCreateUser(array(
    'administer viewport',
  ));
  $this->userWithoutViewportPerm = $this
    ->drupalCreateUser();
}