Merge pull request #19887 from woocommerce/fix/19871-test
Sets the option before running test so it passes :)
This commit is contained in:
commit
9e3d373cd6
|
@ -46,6 +46,7 @@ class WC_Tests_Customer_Functions extends WC_Unit_Test_Case {
|
||||||
$this->assertEquals( 'fred2', $userdata->user_login );
|
$this->assertEquals( 'fred2', $userdata->user_login );
|
||||||
|
|
||||||
// No password.
|
// No password.
|
||||||
|
update_option( 'woocommerce_registration_generate_password', 'no' );
|
||||||
$id = wc_create_new_customer( 'joe@example.com', 'joecustomer', '' );
|
$id = wc_create_new_customer( 'joe@example.com', 'joecustomer', '' );
|
||||||
$this->assertInstanceOf( 'WP_Error', $id );
|
$this->assertInstanceOf( 'WP_Error', $id );
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue