Skip to content

Commit

Permalink
Merge pull request #21874 from Yoast/344-fix-integration-tests-that-f…
Browse files Browse the repository at this point in the history
…ail-during-the-black-friday-sale-release-branch

Fix integration tests when black friday sale is on
  • Loading branch information
thijsoo authored Nov 28, 2024
2 parents a0d5866 + 45e8338 commit a00c92b
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,9 @@ final class Post_Site_Information_Test extends TestCase {
*/
public function set_up() {
parent::set_up();
$this->promotion_manager = \YoastSEO()->classes->get( Promotion_Manager::class );
$this->promotion_manager = Mockery::mock( Promotion_Manager::class );
$this->promotion_manager->expects( 'get_current_promotions' )->andReturn( [] );
$this->promotion_manager->expects( 'is' )->with( 'black-friday-2023-checklist' )->andReturn( false );
$this->short_link_helper = \YoastSEO()->helpers->short_link;
$this->wistia_embed_repo = Mockery::mock( Wistia_Embed_Permission_Repository::class );
$this->wistia_embed_repo->expects( 'get_value_for_user' )->with( 0 )->andReturnTrue();
Expand Down

0 comments on commit a00c92b

Please sign in to comment.