Changeset 49754 for branches/5.6/tests/phpunit/tests/auth.php
- Timestamp:
- 12/04/2020 09:46:42 PM (4 years ago)
- Location:
- branches/5.6
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.6
-
branches/5.6/tests/phpunit/tests/auth.php
r49617 r49754 38 38 $this->user = clone self::$_user; 39 39 wp_set_current_user( self::$user_id ); 40 update_site_option( 'using_application_passwords', 1 ); 40 41 } 41 42 … … 605 606 $this->assertSame( self::$user_id, $user->ID ); 606 607 } 608 609 /** 610 * @ticket 51939 611 */ 612 public function test_authenticate_application_password_returns_null_if_not_in_use() { 613 delete_site_option( 'using_application_passwords' ); 614 615 $authenticated = wp_authenticate_application_password( null, 'idonotexist', 'password' ); 616 $this->assertNull( $authenticated ); 617 } 607 618 }
Note: See TracChangeset
for help on using the changeset viewer.