You are here

private function EntityformCRUDTestCase::entityformValidateAccessOthers in Entityform 7.2

Same name and namespace in other branches
  1. 7 entityform.test \EntityformCRUDTestCase::entityformValidateAccessOthers()
1 call to EntityformCRUDTestCase::entityformValidateAccessOthers()
EntityformCRUDTestCase::testCreateEntityformType in ./entityform.test

File

./entityform.test, line 250

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.');
}