get_cart_hash() public method

Get cart hash.
public get_cart_hash ( string $context = 'view' ) : string
$context string
return string
Beispiel #1
0
 /**
  * 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());
 }