/** * Test: get_cart_hash */ function test_get_cart_hash() { $object = new WC_Order(); $set_to = '12345'; $object->set_cart_hash($set_to); $this->assertEquals($set_to, $object->get_cart_hash()); }