mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-30 05:00:51 +08:00
Remove unused and skip tests
This commit is contained in:
parent
c8b6f30fea
commit
eea6a0982c
2 changed files with 4 additions and 4 deletions
|
@ -7,6 +7,8 @@ use WC_Product_Simple;
|
|||
use WooCommerce\PayPalCommerce\PayPalSubscriptions\RenewalHandler;
|
||||
|
||||
/**
|
||||
* @group subscriptions
|
||||
* @group subscription-paypal
|
||||
* @group skip-ci
|
||||
*/
|
||||
class PayPalSubscriptionsRenewalTest extends TestCase
|
||||
|
@ -324,7 +326,6 @@ class PayPalSubscriptionsRenewalTest extends TestCase
|
|||
public function test_process_empty_subscriptions_array()
|
||||
{
|
||||
$c = $this->getContainer();
|
||||
$logger = $c->get('woocommerce.logger.woocommerce');
|
||||
|
||||
// Create a logger mock that expects no operations if no subscriptions
|
||||
$logger_mock = \Mockery::mock(LoggerInterface::class);
|
||||
|
|
|
@ -15,7 +15,9 @@ use WooCommerce\PayPalCommerce\WcGateway\Gateway\PayPalGateway;
|
|||
use WooCommerce\PayPalCommerce\WcGateway\Gateway\CreditCardGateway;
|
||||
|
||||
/**
|
||||
* @group subscriptions
|
||||
* @group subscription-vaulting
|
||||
* @group skip-ci
|
||||
*/
|
||||
class VaultingSubscriptionsTest extends IntegrationMockedTestCase
|
||||
{
|
||||
|
@ -187,7 +189,6 @@ class VaultingSubscriptionsTest extends IntegrationMockedTestCase
|
|||
$mockOrderEndpoint = $this->mockOrderEndpoint('CAPTURE', true);
|
||||
$c = $this->setupTestContainer($mockOrderEndpoint);
|
||||
|
||||
$paymentToken = $this->setupPaymentToken($this->customer_id, $gateway_id);
|
||||
$subscription = $this->createSubscription($this->customer_id, $gateway_id);
|
||||
$renewal_order = $this->createRenewalOrder($this->customer_id, $gateway_id, $subscription->get_id());
|
||||
|
||||
|
@ -210,7 +211,6 @@ class VaultingSubscriptionsTest extends IntegrationMockedTestCase
|
|||
$mockOrderEndpoint = $this->mockOrderEndpoint('CAPTURE', false);
|
||||
$c = $this->setupTestContainer($mockOrderEndpoint);
|
||||
|
||||
$paymentToken = $this->setupPaymentToken($this->customer_id, PayPalGateway::ID);
|
||||
$subscription = $this->createSubscription($this->customer_id, PayPalGateway::ID);
|
||||
$renewal_order = $this->createRenewalOrder($this->customer_id, PayPalGateway::ID, $subscription->get_id());
|
||||
$renewal_handler = $c->get('wc-subscriptions.renewal-handler');
|
||||
|
@ -234,7 +234,6 @@ class VaultingSubscriptionsTest extends IntegrationMockedTestCase
|
|||
$c = $this->setupTestContainer($mockOrderEndpoint);
|
||||
|
||||
// Setup payment token and subscription
|
||||
$paymentToken = $this->setupPaymentToken($this->customer_id, PayPalGateway::ID);
|
||||
$subscription = $this->createSubscription($this->customer_id, PayPalGateway::ID);
|
||||
$renewal_order = $this->createRenewalOrder($this->customer_id, PayPalGateway::ID, $subscription->get_id());
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue