PHP Class WC_Helper_Order

This helper class should ONLY be used for unit tests!.
Mostra file Open project: woocommerce/woocommerce Class Usage Examples

Public Methods

Method Description
create_order ( $customer_id = 1 ) : WC_Order Create a order.
delete_order ( integer $order_id ) Delete a product.

Method Details

create_order() public static method

Create a order.
Since: 2.4
public static create_order ( $customer_id = 1 ) : WC_Order
return WC_Order Order object.

delete_order() public static method

Delete a product.
public static delete_order ( integer $order_id )
$order_id integer ID of the order to delete.