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_server_status.test
11 11
class ReCaptchaServerStatusTestCase 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 server status cache test',
21 24
      'group' => 'reCAPTCHA',
22
      'description' => 'Tests reCaptcha admin UI'
25
      'description' => 'Tests reCaptcha admin UI',
23 26
    );
24 27
  }
25 28

  
29
  /**
30
   *
31
   */
26 32
  public function setup() {
27 33
    parent::setUp();
28 34
    include_once drupal_get_path('module', 'recaptcha') . '/recaptcha-php-1.11/recaptchalib.php';
29 35
  }
30 36

  
37
  /**
38
   *
39
   */
31 40
  public function testServerStatusCache() {
32 41
    // No cache before status check.
33 42
    $status_cache = cache_get('recaptcha_server_status');

Formats disponibles : Unified diff