private function EntityUpdateUIAccessTest::runPageAccess in Entity Update 8
Run page tests.
3 calls to EntityUpdateUIAccessTest::runPageAccess()
- EntityUpdateUIAccessTest::testAdminsAccess in modules/
entity_update_tests/ src/ Tests/ EntityUpdateUIAccessTest.php - Tests Pages for admin user.
- EntityUpdateUIAccessTest::testAnonymousAccess in modules/
entity_update_tests/ src/ Tests/ EntityUpdateUIAccessTest.php - Tests Pages for Anonymous users.
- EntityUpdateUIAccessTest::testSimpleUserAccess in modules/
entity_update_tests/ src/ Tests/ EntityUpdateUIAccessTest.php - Tests Pages for Simple users.
File
- modules/
entity_update_tests/ src/ Tests/ EntityUpdateUIAccessTest.php, line 72
Class
- EntityUpdateUIAccessTest
- Test install and uninstall Entity Update module.
Namespace
Drupal\entity_update_tests\TestsCode
private function runPageAccess($code = NULL, $method = '') {
// Return if NULL.
if (!$code) {
return;
}
// Check home page.
$this
->drupalGet('');
$this
->assertResponse(200, "Home : {$method}");
$this
->drupalGet('admin/config/development/entity-update');
$this
->assertResponse($code, "Page : Root ({$code})");
$this
->drupalGet('admin/config/development/entity-update/tests');
$this
->assertResponse($code, "Page : Test entity fields settings page ({$code})");
$this
->drupalGet('admin/config/development/entity-update/exec');
$this
->assertResponse($code, "Page : Entity update exec page ({$code})");
$this
->drupalGet('admin/config/development/entity-update/types');
$this
->assertResponse($code, "Page : Entity types ({$code})");
$this
->drupalGet('admin/config/development/entity-update/status');
$this
->assertResponse($code, "Page : Entity types update status ({$code})");
$this
->drupalGet('admin/config/development/entity-update/list');
$this
->assertResponse($code, "Page : Entity list ({$code})");
$this
->drupalGet('admin/config/development/entity-update/list/user/1');
$this
->assertResponse($code, "Page : Entity list of user/1 ({$code})");
$this
->drupalGet('admin/config/development/entity-update/list/user/1/2');
$this
->assertResponse($code, "Page : Entity list of user/1/2 ({$code})");
}