Skip to content

Commit

Permalink
Update application-passwords.php
Browse files Browse the repository at this point in the history
  • Loading branch information
TimothyBJacobs authored Sep 23, 2024
1 parent 62f1b48 commit 42fbe5a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/phpunit/tests/rest-api/application-passwords.php
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,8 @@ public function data_update_application_password() {
*/
public function test_can_create_duplicate_app_password_names() {
$created = WP_Application_Passwords::create_new_application_password( self::$user_id, array( 'name' => 'My App' ) );
$this->assertNotWPError( $created );
$this->assertNotWPError( $created, 'First attempt to create an application password should not return an error' );
$created = WP_Application_Passwords::create_new_application_password( self::$user_id, array( 'name' => 'My App' ) );
$this->assertNotWPError( $created );
$this->assertNotWPError( $created, 'Second attempt to create an application password should not return an error' );
}
}

0 comments on commit 42fbe5a

Please sign in to comment.