get_cancel_endpoint() public method

Helper method to return the cancel endpoint.
public get_cancel_endpoint ( ) : string
return string the cancel endpoint; either the cart page or the home page.
Beispiel #1
0
 /**
  * Test: get_cancel_endpoint
  */
 function test_get_cancel_endpoint()
 {
     $object = new WC_Order();
     $this->assertEquals('http://example.org/', $object->get_cancel_endpoint());
 }