Projet

Général

Profil

Révision 91af538d

Ajouté par Assos Assos il y a environ 3 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/ldap/ldap_user/tests/ldap_user.test
918 918
      $email_body = $emails[count($emails) - 1]['body'];
919 919
      $result = [];
920 920
      preg_match_all('/(user\/reset\/.*)This link can only be/s', $email_body, $result, PREG_PATTERN_ORDER);
921
      if (count($result == 2)) {
921
      if (is_array($result) && count($result) === 2) {
922 922
        $login_path = trim($result[1][0]);
923 923
        // User login form.
924 924
        $this->drupalGet($login_path);

Formats disponibles : Unified diff