Changeset 43571 for trunk/tests/phpunit/tests/auth.php
- Timestamp:
- 08/17/2018 01:50:26 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/auth.php
r42343 r43571 235 235 $key = wp_generate_password( 20, false ); 236 236 $wpdb->update( 237 $wpdb->users, array( 237 $wpdb->users, 238 array( 238 239 'user_activation_key' => strtotime( '-1 hour' ) . ':' . self::$wp_hasher->HashPassword( $key ), 239 ), array( 240 ), 241 array( 240 242 'ID' => $this->user->ID, 241 243 ) … … 270 272 $key = wp_generate_password( 20, false ); 271 273 $wpdb->update( 272 $wpdb->users, array( 274 $wpdb->users, 275 array( 273 276 'user_activation_key' => strtotime( '-48 hours' ) . ':' . self::$wp_hasher->HashPassword( $key ), 274 ), array( 277 ), 278 array( 275 279 'ID' => $this->user->ID, 276 280 ) … … 305 309 $key = wp_generate_password( 20, false ); 306 310 $wpdb->update( 307 $wpdb->users, array( 311 $wpdb->users, 312 array( 308 313 'user_activation_key' => self::$wp_hasher->HashPassword( $key ), 309 ), array( 314 ), 315 array( 310 316 'ID' => $this->user->ID, 311 317 ) … … 332 338 $key = wp_generate_password( 20, false ); 333 339 $wpdb->update( 334 $wpdb->users, array( 340 $wpdb->users, 341 array( 335 342 'user_activation_key' => $key, 336 ), array( 343 ), 344 array( 337 345 'ID' => $this->user->ID, 338 346 )
Note: See TracChangeset
for help on using the changeset viewer.