mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-04 08:47:23 +08:00
Fix phpunit
This commit is contained in:
parent
f1e54ced4f
commit
af25aeead0
1 changed files with 3 additions and 1 deletions
|
@ -37,6 +37,7 @@ class SettingsListenerTest extends ModularTestCase
|
|||
$state->shouldReceive('current_state')->andReturn(State::STATE_ONBOARDED);
|
||||
$bearer = Mockery::mock(Bearer::class);
|
||||
$signup_link_cache = Mockery::mock(Cache::class);
|
||||
$signup_link_ids = array();
|
||||
|
||||
$testee = new SettingsListener(
|
||||
$settings,
|
||||
|
@ -46,7 +47,8 @@ class SettingsListenerTest extends ModularTestCase
|
|||
$state,
|
||||
$bearer,
|
||||
PayPalGateway::ID,
|
||||
$signup_link_cache
|
||||
$signup_link_cache,
|
||||
$signup_link_ids
|
||||
);
|
||||
|
||||
$_GET['section'] = PayPalGateway::ID;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue