메소드 |
설명 |
|
create_customer ( $username = 'testcustomer', $password = 'hunter2', $email = '[email protected]' ) |
Creates a customer in the tests DB. |
|
create_mock_customer ( ) : WC_Customer |
Create a mock customer for testing purposes. |
|
get_chosen_shipping_methods ( ) : array |
Get the user's chosen shipping method. |
|
get_customer_details ( ) : array |
Get the customer's shipping and billing info from the session. |
|
get_expected_store_location ( ) : array |
Get the expected output for the store's base location settings. |
|
get_tax_based_on ( ) : string |
Get the "Tax Based On" WooCommerce option. |
|
set_chosen_shipping_methods ( $chosen_shipping_methods ) |
Set the user's chosen shipping method. |
|
set_customer_details ( $customer_details ) |
Set the the current customer's billing details in the session. |
|
set_tax_based_on ( string $default_shipping_method ) |
Set the "Tax Based On" WooCommerce option. |
|