Remove unused and skip tests

This commit is contained in:
carmenmaymo 2025-06-02 14:50:27 +02:00
parent c8b6f30fea
commit eea6a0982c
No known key found for this signature in database
GPG key ID: 6023F686B0F3102E
2 changed files with 4 additions and 4 deletions

View file

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

View file

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