Projet

Général

Profil

Révision feca1e4a

Ajouté par Assos Assos il y a presque 7 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/webform/tests/WebformPermissionsTestCase.test
4 4
 * @file
5 5
 * Webform module permission tests.
6 6
 */
7

  
8
/**
9
 *
10
 */
7 11
class WebformPermissionsTestCase extends WebformTestCase {
12

  
8 13
  /**
9 14
   * {@inheritdoc}
10 15
   */
......
19 24
  /**
20 25
   * Create a webform node in which authenticated users have access to submit.
21 26
   */
22
  function testWebformSubmitAccess() {
27
  public function testWebformSubmitAccess() {
23 28
    $this->webformReset();
24 29
    $node = $this->webformForm();
25 30
    $node->webform['roles'] = array(2);
......
42 47
    // Something in SimpleTest isn't handling the string correctly.
43 48
    $this->assertText('to view this form.', t('Anonymous user is not allowed to submit form.'), t('Webform'));
44 49
  }
50

  
45 51
}

Formats disponibles : Unified diff