You are here

public function ViewProfilesPermsTest::setUp in View profiles permissions 2.0.x

Same name and namespace in other branches
  1. 8 tests/src/Functional/ViewProfilesPermsTest.php \Drupal\Tests\view_profiles_perms\Functional\ViewProfilesPermsTest::setUp()

Overrides BrowserTestBase::setUp

File

tests/src/Functional/ViewProfilesPermsTest.php, line 55

Class

ViewProfilesPermsTest
Tests the permissions provided by view_profile_perms module.

Namespace

Drupal\Tests\view_profiles_perms\Functional

Code

public function setUp() {
  parent::setUp();
  $developer = $this
    ->drupalCreateUser();
  $developer
    ->addRole('developer');
  $developer
    ->save();
  $this->developer = $developer;
  $manager = $this
    ->drupalCreateUser();
  $manager
    ->addRole('manager');
  $manager
    ->save();
  $this->manager = $manager;
  $this->admin = $this
    ->drupalCreateUser([], NULL, TRUE);
}