Projet

Général

Profil

Révision 4f315dab

Ajouté par Assos Assos il y a environ 8 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/recaptcha/tests/recaptcha_ui.test
11 11
class ReCaptchaAdminUITestCase extends ReCaptchaBaseTestCase {
12 12

  
13 13
  /**
14
   * Drupal path of the (general) CAPTCHA admin page
14
   * Drupal path of the (general) CAPTCHA admin page.
15 15
   */
16 16
  const RECAPTCHA_ADMIN_PATH = 'admin/config/people/captcha/recaptcha';
17 17

  
18
  /**
19
   *
20
   */
18 21
  public static function getInfo() {
19 22
    return array(
20 23
      'name' => 'ReCaptcha admin UI test',
21 24
      'group' => 'reCAPTCHA',
22
      'description' => 'Tests reCaptcha admin UI'
25
      'description' => 'Tests reCaptcha admin UI',
23 26
    );
24 27
  }
25 28

  
26 29
  /**
27 30
   * Test access to the admin pages.
28 31
   */
29
  function testAdminAccess() {
32
  public function testAdminAccess() {
30 33
    $this->drupalLogin($this->normal_user);
31 34
    $this->drupalGet(self::RECAPTCHA_ADMIN_PATH);
32 35
    file_put_contents('tmp.simpletest.html', $this->drupalGetContent());
......
38 41
    $this->assertResponse(200);
39 42
    $this->assertField('recaptcha_server_status_check_interval');
40 43

  
41

  
42 44
    // Update the interval and make sure it get saved properly.
43 45
    $edit = array(
44 46
      'recaptcha_server_status_check_interval' => 20,

Formats disponibles : Unified diff