Révision 30d5b9c5
Ajouté par Mathieu Schiano Di Schiabica il y a environ 8 ans
drupal7/modules/user/user.test | ||
---|---|---|
2230 | 2230 |
$this->drupalPost('search/user/', $edit, t('Search')); |
2231 | 2231 |
$this->assertText($keys); |
2232 | 2232 |
|
2233 |
// Verify that wildcard search works. |
|
2234 |
$keys = $user1->name; |
|
2235 |
$keys = substr($keys, 0, 2) . '*' . substr($keys, 4, 2); |
|
2236 |
$edit = array('keys' => $keys); |
|
2237 |
$this->drupalPost('search/user/', $edit, t('Search')); |
|
2238 |
$this->assertText($user1->name, 'Search for username wildcard resulted in user name on page for administrative user.'); |
|
2239 |
|
|
2240 |
// Verify that wildcard search works for email. |
|
2241 |
$keys = $user1->mail; |
|
2242 |
$keys = substr($keys, 0, 2) . '*' . substr($keys, 4, 2); |
|
2243 |
$edit = array('keys' => $keys); |
|
2244 |
$this->drupalPost('search/user/', $edit, t('Search')); |
|
2245 |
$this->assertText($user1->name, 'Search for email wildcard resulted in user name on page for administrative user.'); |
|
2246 |
|
|
2233 | 2247 |
// Create a blocked user. |
2234 | 2248 |
$blocked_user = $this->drupalCreateUser(); |
2235 | 2249 |
$edit = array('status' => 0); |
Formats disponibles : Unified diff
Update to 7.42