Add order test
This commit is contained in:
parent
e9db2d4522
commit
5e26428d44
|
@ -1231,6 +1231,16 @@ class WC_Tests_CRUD_Orders extends WC_Unit_Test_Case {
|
|||
$this->assertEquals( $set_to, $object->get_shipping_country() );
|
||||
}
|
||||
|
||||
/**
|
||||
* Test: get_shipping_phone
|
||||
*/
|
||||
public function test_get_shipping_phone() {
|
||||
$object = new WC_Order();
|
||||
$set_to = '123456678';
|
||||
$object->set_shipping_phone( $set_to );
|
||||
$this->assertEquals( $set_to, $object->get_shipping_phone() );
|
||||
}
|
||||
|
||||
/**
|
||||
* Test get_formatted_billing_address and has_billing_address.
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue