Projet

Général

Profil

Révision 6b24a280

Ajouté par Assos Assos il y a presque 4 ans

-a

Voir les différences:

drupal7/modules/system/system.test
2995 2995
    // The following checks will throw PHP notices, so we disable error
2996 2996
    // assertions.
2997 2997
    $this->assertErrors = FALSE;
2998
    $this->assertFalse(drupal_valid_token(NULL, new stdClass()), 'Token NULL, value object returns FALSE.');
2998

  
2999
    try {
3000
      $this->assertFalse(drupal_valid_token(NULL, new stdClass()), 'Token NULL, value object returns FALSE.');
3001
    }
3002
    // PHP 7.4 compatibility: the stdClass string conversion throws an exception
3003
    // which is also an acceptable outcome of this test.
3004
    catch (Error $e) {
3005
      $this->pass('Token NULL, value object throws error exception which is ok.');
3006
    }
3007

  
2999 3008
    $this->assertFalse(drupal_valid_token(0, array()), 'Token 0, value array returns FALSE.');
3000 3009
    $this->assertFalse(drupal_valid_token('', array()), "Token '', value array returns FALSE.");
3001 3010
    $this->assertFalse('' === drupal_get_token(array()), 'Token generation does not return an empty string on invalid parameters.');

Formats disponibles : Unified diff