Skip to content

Commit

Permalink
check method for exactly 3 get calls and remove redundant 4th step.
Browse files Browse the repository at this point in the history
  • Loading branch information
kt-12 committed Sep 4, 2024
1 parent dd73ec6 commit c5c547a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tests/Unit/MerchantCenter/MerchantCenterServiceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -511,19 +511,17 @@ public function test_get_setup_status_step_paid_ads() {
$this->options->method( 'get_merchant_id' )->willReturn( 1234 );
$this->merchant_account_state->method( 'last_incomplete_step' )->willReturn( '' );
$this->ads_service->method( 'connected_account' )->willReturn( true );
$this->options->method( 'get' )
$this->options->expects( $this->exactly( 3 ) )->method( 'get' )
->withConsecutive(
[ OptionsInterface::MC_SETUP_COMPLETED_AT, false ],
[ OptionsInterface::TARGET_AUDIENCE ],
[ OptionsInterface::MERCHANT_CENTER, [] ],
[ OptionsInterface::MERCHANT_CENTER, [] ]
)->willReturnOnConsecutiveCalls(
false,
[
'location' => 'selected',
'countries' => [ 'GB' ],
],
[],
[]
);
$this->shipping_time_query->method( 'get_results' )
Expand Down

0 comments on commit c5c547a

Please sign in to comment.