public function get_cart_hash($context = 'view') { return $this->get_prop('cart_hash', $context); }
/** * 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()); }