woocommerce/tests/unit-tests/customer
Rodrigo Primo 9c4c006baa Fix: set orderby and order when calling WC_Customer_Download_Data_Store::get_downloads()
This commit fixes a bug in WC_Customer_Download_Data_Store::get_downloads() that made impossible to change the order in which the query returned the results. This method accepts the arguments `order_by` and `order` but it was ignoring them and always using the default values ('permission_id' and 'ASC' respectively).

One of the assertions of the WC_Customer_Download_Data_Store::get_downloads() test method was modified to make sure the code now works.

This bug was introduced by commit a443419.
2018-01-26 15:55:13 -02:00
..
crud.php Fix tests 2017-12-21 19:00:55 +00:00
customer-download-log.php Feedback 2017-11-13 15:58:22 +00:00
customer-download.php Fix: set orderby and order when calling WC_Customer_Download_Data_Store::get_downloads() 2018-01-26 15:55:13 -02:00
customer.php WIP - Product CRUD (#12065) 2016-11-16 12:38:24 +00:00
functions.php Add unit test to cover download permissions when running wc_update_new_customer_past_orders 2017-11-20 10:12:59 +02:00