mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-30 05:00:51 +08:00
Refactor the service name, variable names to use the new class
This commit is contained in:
parent
96895aba51
commit
b86f62e852
1 changed files with 4 additions and 4 deletions
|
@ -97,8 +97,8 @@ class VaultingSubscriptionsTest extends IntegrationMockedTestCase
|
||||||
add_filter('user_has_cap', $user_has_cap_callback, 10, 3);
|
add_filter('user_has_cap', $user_has_cap_callback, 10, 3);
|
||||||
|
|
||||||
// Convert to Mockery mocks
|
// Convert to Mockery mocks
|
||||||
$billing_agreements_endpoint_mock = \Mockery::mock(ReferenceTransactionStatus::class);
|
$reference_transaction_status = \Mockery::mock(ReferenceTransactionStatus::class);
|
||||||
$billing_agreements_endpoint_mock->shouldReceive('reference_transaction_enabled')
|
$reference_transaction_status->shouldReceive('reference_transaction_enabled')
|
||||||
->andReturn(true);
|
->andReturn(true);
|
||||||
|
|
||||||
$state_mock = \Mockery::mock(State::class);
|
$state_mock = \Mockery::mock(State::class);
|
||||||
|
@ -115,8 +115,8 @@ class VaultingSubscriptionsTest extends IntegrationMockedTestCase
|
||||||
|
|
||||||
// Create and configure the SettingsListener
|
// Create and configure the SettingsListener
|
||||||
$c = $this->bootstrapModule([
|
$c = $this->bootstrapModule([
|
||||||
'api.endpoint.billing-agreements' => function () use ($billing_agreements_endpoint_mock) {
|
'api.endpoint.billing-agreements' => function () use ($reference_transaction_status) {
|
||||||
return $billing_agreements_endpoint_mock;
|
return $reference_transaction_status;
|
||||||
},
|
},
|
||||||
'onboarding.state' => function () use ($state_mock) {
|
'onboarding.state' => function () use ($state_mock) {
|
||||||
return $state_mock;
|
return $state_mock;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue