Add order test

This commit is contained in:
Mike Jolley 2021-06-03 14:05:19 +01:00
parent e9db2d4522
commit 5e26428d44
1 changed files with 10 additions and 0 deletions

View File

@ -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.
*