From c8b6f30fea8c62c0eb988a989d941173a00ddc81 Mon Sep 17 00:00:00 2001 From: carmenmaymo Date: Mon, 2 Jun 2025 14:49:46 +0200 Subject: [PATCH] Fix condition --- tests/integration/PHPUnit/IntegrationMockedTestCase.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/integration/PHPUnit/IntegrationMockedTestCase.php b/tests/integration/PHPUnit/IntegrationMockedTestCase.php index ba4c653d3..9c4b6b496 100644 --- a/tests/integration/PHPUnit/IntegrationMockedTestCase.php +++ b/tests/integration/PHPUnit/IntegrationMockedTestCase.php @@ -162,7 +162,7 @@ class IntegrationMockedTestCase extends TestCase public function createCustomerIfNotExists(int $customer_id= 1): int { $customer = new \WC_Customer($customer_id); - if (! empty($customer->get_email() )) { + if ( empty($customer->get_email() )) { $customer->set_email('customer'. $customer_id. '@example.com'); $customer->set_first_name('John'); $customer->set_last_name('Doe');