Skip to content

Commit

Permalink
Fix phpunit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
derekherman committed Jul 2, 2020
1 parent c10ac4e commit 6d80f57
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/phpunit/php/class-test-api.php
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ public function test_no_check_api_credentials() {
$api = new API( $plugin );
$wp_error = $api->check_api_credentials();
$this->assertEquals( $wp_error->get_error_code(), 'missing_api_credential' );
$this->assertEquals( wp_strip_all_tags( $wp_error->get_error_message() ), 'To complete setup of the Unsplash plugin you will need to add the API access key.Visit the Unspash settings page to complete the process.' );
$this->assertEquals( wp_strip_all_tags( $wp_error->get_error_message() ), 'To complete setup of the Unsplash plugin you will need to add the API access key.Visit the Unsplash settings page to complete the process.' );
remove_filter( 'unsplash_api_credentials', [ $this, 'disable_unsplash_api_credentials' ] );
}

Expand All @@ -178,7 +178,7 @@ public function test_no_check_api_credentials_again() {
$api = new API( $plugin );
$wp_error = $api->get( 'uYpOYyJdhRE' );
$this->assertEquals( $wp_error->get_error_code(), 'missing_api_credential' );
$this->assertEquals( wp_strip_all_tags( $wp_error->get_error_message() ), 'To complete setup of the Unsplash plugin you will need to add the API access key.Visit the Unspash settings page to complete the process.' );
$this->assertEquals( wp_strip_all_tags( $wp_error->get_error_message() ), 'To complete setup of the Unsplash plugin you will need to add the API access key.Visit the Unsplash settings page to complete the process.' );
remove_filter( 'unsplash_api_credentials', [ $this, 'disable_unsplash_api_credentials' ] );
}

Expand Down

0 comments on commit 6d80f57

Please sign in to comment.