From adf1c92666f31204dc3cad19b999ababfbdd5109 Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Fri, 27 Apr 2018 10:01:02 +0100 Subject: [PATCH] Sets the option before running test so it passes :) Broken in #19871 --- tests/unit-tests/customer/functions.php | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/unit-tests/customer/functions.php b/tests/unit-tests/customer/functions.php index c4a0b32ed33..f995b12ef71 100644 --- a/tests/unit-tests/customer/functions.php +++ b/tests/unit-tests/customer/functions.php @@ -46,6 +46,7 @@ class WC_Tests_Customer_Functions extends WC_Unit_Test_Case { $this->assertEquals( 'fred2', $userdata->user_login ); // No password. + update_option( 'woocommerce_registration_generate_password', 'no' ); $id = wc_create_new_customer( 'joe@example.com', 'joecustomer', '' ); $this->assertInstanceOf( 'WP_Error', $id );