diff --git a/tests/legacy/unit-tests/order/class-wc-tests-crud-orders.php b/tests/legacy/unit-tests/order/class-wc-tests-crud-orders.php index 2444987f2ae..f25ad7e1de1 100644 --- a/tests/legacy/unit-tests/order/class-wc-tests-crud-orders.php +++ b/tests/legacy/unit-tests/order/class-wc-tests-crud-orders.php @@ -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. *