Projet

Général

Profil

Révision cd5c298a

Ajouté par Geoffroy Desvernay il y a plus de 5 ans

MAJ 7.60 -> 7.62

Voir les différences:

drupal7/modules/user/user.test
276 276
      'foo@example.com'        => array('Valid username', 'assertNull'),
277 277
      'foo@-example.com'       => array('Valid username', 'assertNull'), // invalid domains are allowed in usernames
278 278
      'þòøÇߪř€'               => array('Valid username', 'assertNull'),
279
      'foo+bar'                => array('Valid username', 'assertNull'), // '+' symbol is allowed
279 280
      'ᚠᛇᚻ᛫ᛒᛦᚦ'                => array('Valid UTF8 username', 'assertNull'), // runes
280 281
      ' foo'                   => array('Invalid username that starts with a space', 'assertNotNull'),
281 282
      'foo '                   => array('Invalid username that ends with a space', 'assertNotNull'),
......
2386 2387
  }
2387 2388

  
2388 2389
  function testUserSearch() {
2390
    // Verify that a user without 'administer users' permission cannot search
2391
    // for users by email address. Additionally, ensure that the username has a
2392
    // plus sign to ensure searching works with that.
2389 2393
    $user1 = $this->drupalCreateUser(array('access user profiles', 'search content', 'use advanced search'));
2394
    $edit['name'] = 'foo+bar';
2395
    $edit['mail'] = $edit['name'] . '@example.com';
2396
    user_save($user1, $edit);
2390 2397
    $this->drupalLogin($user1);
2391 2398
    $keys = $user1->mail;
2392 2399
    $edit = array('keys' => $keys);

Formats disponibles : Unified diff