Fix condition

This commit is contained in:
carmenmaymo 2025-06-02 14:49:46 +02:00
parent 11670f8035
commit c8b6f30fea
No known key found for this signature in database
GPG key ID: 6023F686B0F3102E

View file

@ -162,7 +162,7 @@ class IntegrationMockedTestCase extends TestCase
public function createCustomerIfNotExists(int $customer_id= 1): int public function createCustomerIfNotExists(int $customer_id= 1): int
{ {
$customer = new \WC_Customer($customer_id); $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_email('customer'. $customer_id. '@example.com');
$customer->set_first_name('John'); $customer->set_first_name('John');
$customer->set_last_name('Doe'); $customer->set_last_name('Doe');