Merge pull request #19887 from woocommerce/fix/19871-test

Sets the option before running test so it passes :)
This commit is contained in:
Mike Jolley 2018-04-27 10:38:37 +01:00 committed by GitHub
commit 9e3d373cd6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -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 );