protected function DeveloperAppPermissionTest::visitPages in Apigee Edge 8
Visits pages as both "my" user and the other user.
Parameters
string $url: URL of the page to visit.
bool $my_access: True if there is access to the page.
string $rel: Entity route.
string $permission: Permission.
1 call to DeveloperAppPermissionTest::visitPages()
- DeveloperAppPermissionTest::assertPermission in tests/
src/ Functional/ DeveloperAppPermissionTest.php - Asserts that an account with a given permission can or can't access pages.
File
- tests/
src/ Functional/ DeveloperAppPermissionTest.php, line 276
Class
- DeveloperAppPermissionTest
- Developer app entity permission test.
Namespace
Drupal\Tests\apigee_edge\FunctionalCode
protected function visitPages(string $url, bool $my_access, string $rel, string $permission) {
$this
->drupalLogin($this->myAccount);
$this
->visitPage($url, $my_access, $rel, $permission);
$this
->drupalLogin($this->otherAccount);
$this
->visitPage($url, FALSE, $rel, $permission);
$this
->drupalLogout();
}