Skip to content

Commit

Permalink
status: Fix tests by alias-mocking Identity_Crisis
Browse files Browse the repository at this point in the history
  • Loading branch information
anomiex committed May 1, 2024
1 parent b9731f6 commit bb03b6a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions projects/packages/status/tests/php/test-status.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ function ( $const ) {
}
);

// Alias-mock Identity_Crisis so the tests don't try to call into it.
\Mockery::mock( 'alias:Automattic\\Jetpack\\Identity_Crisis' );

Status\Cache::clear();
$this->status_obj = new Status();
}
Expand Down

0 comments on commit bb03b6a

Please sign in to comment.