Fix unit tests

This commit is contained in:
emilicastells 2021-08-13 14:39:27 +02:00
parent 9b16d92565
commit 3fde81bb80
No known key found for this signature in database
GPG key ID: 1520C07081754570
2 changed files with 2 additions and 1 deletions

View file

@ -94,7 +94,7 @@ class IdentityTokenTest extends TestCase
$this->bearer
->expects('bearer')->andReturn($token);
expect('wp_remote_get')->andReturn();
expect('wp_remote_get')->andReturn(['body' => '',]);
expect('is_wp_error')->andReturn(false);
expect('wp_remote_retrieve_response_code')->andReturn(500);
$this->logger->shouldReceive('log');