mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-30 05:00:51 +08:00
Fix condition
This commit is contained in:
parent
11670f8035
commit
c8b6f30fea
1 changed files with 1 additions and 1 deletions
|
@ -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');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue