Refactor the service name, variable names to use the new class

This commit is contained in:
Narek Zakarian 2025-06-30 16:45:36 +04:00
parent 96895aba51
commit b86f62e852
No known key found for this signature in database
GPG key ID: 07AFD7E7A9C164A7

View file

@ -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;