woocommerce/tests/unit-tests/customer
Rodrigo Primo b09bb3eee9 Fix: orderby and order parameters in WC_Customer_Download_Log_Data_Store::get_download_logs()
This commit fixes a bug in WC_Customer_Download_Log_Data_Store::get_download_logs() 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 ('download_log_id' and 'ASC' respectively).

It also introduces a very basic unit test to cover the method main functionality and to make sure that the parameters order and orderby are not ignored anymore.

It seems that the modified method was inspired in WC_Customer_Download_Data_Store::get_downloads() before the same bug was fixed in #18620.
2018-07-30 16:40:21 -03:00
..
class-wc-customer-download-log-data-store.php Fix: orderby and order parameters in WC_Customer_Download_Log_Data_Store::get_download_logs() 2018-07-30 16:40:21 -03:00
class-wc-tests-customer-download.php Merge branch 'master' into update/improve-get-downloads 2018-02-28 13:34:11 -03:00
crud.php Fix tests 2017-12-21 19:00:55 +00:00
customer-download-log.php Removed test to reflect changes in track download method. 2018-05-09 15:54:38 +02:00
customer.php WIP - Product CRUD (#12065) 2016-11-16 12:38:24 +00:00
functions.php Merge branch 'master' into feature/product-custom-tables-supporting-changes 2018-06-13 10:18:38 +01:00