Skip to content

Commit

Permalink
Fix tests that were looking for strings within strings.
Browse files Browse the repository at this point in the history
  • Loading branch information
dd32 committed Feb 14, 2023
1 parent 420d0dd commit cf0fb7a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tests/providers/class-two-factor-backup-codes.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public function test_get_instance() {
* @covers Two_Factor_Backup_Codes::get_label
*/
public function test_get_label() {
$this->assertStringContainsString( 'Backup Verification Codes', $this->provider->get_label() );
$this->assertStringContainsString( 'Backup Codes', $this->provider->get_label() );
}

/**
Expand All @@ -60,7 +60,7 @@ public function test_authentication_page() {
$this->provider->authentication_page( false );
$contents = ob_get_clean();

$this->assertStringContainsString( 'Enter a backup verification code.', $contents );
$this->assertStringContainsString( 'Enter a backup code.', $contents );
}

/**
Expand Down
2 changes: 1 addition & 1 deletion tests/providers/class-two-factor-totp.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public function test_get_instance() {
* @covers Two_Factor_Totp::get_label
*/
public function test_get_label() {
$this->assertStringContainsString( 'Time Based One-Time Password (TOTP)', $this->provider->get_label() );
$this->assertStringContainsString( 'Authenticator app', $this->provider->get_label() );
}

/**
Expand Down

0 comments on commit cf0fb7a

Please sign in to comment.