private function EntityformCRUDTestCase::entityformValidateAccessOthers in Entityform 7
Same name and namespace in other branches
- 7.2 entityform.test \EntityformCRUDTestCase::entityformValidateAccessOthers()
1 call to EntityformCRUDTestCase::entityformValidateAccessOthers()
File
- ./
entityform.test, line 228
Class
- EntityformCRUDTestCase
- Test basic CRUD functionality.
Code
private function entityformValidateAccessOthers($entityform_id, $user) {
$this
->drupalLogin($user);
// Try to get Entityform View page
$this
->drupalGet('entityform/' . $entityform_id);
$this
->assertText(t('Access denied'), 'Access has been denied for others to view submission page.');
$this
->drupalGet('entityform/' . $entityform_id . '/edit');
$this
->assertText(t('Access denied'), 'Access has been denied for others to edit submission page.');
$this
->drupalGet('entityform/' . $entityform_id . '/delete');
$this
->assertText(t('Access denied'), 'Access has been denied for others to submission delete page.');
}