From a4ba20681e00b01425c4d2469a000134231b4208 Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Tue, 23 Apr 2019 11:48:24 +0100 Subject: [PATCH] added failing test --- tests/unit-tests/util/class-wc-tests-wc-query.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/tests/unit-tests/util/class-wc-tests-wc-query.php b/tests/unit-tests/util/class-wc-tests-wc-query.php index f5cba195d15..fef9cd1186f 100644 --- a/tests/unit-tests/util/class-wc-tests-wc-query.php +++ b/tests/unit-tests/util/class-wc-tests-wc-query.php @@ -282,6 +282,20 @@ class WC_Tests_WC_Query extends WC_Unit_Test_Case { 'meta_key' => '', ), ), + array( + 'orderby' => array( + 'price', + 'date', + ), + 'order' => array( + 'DESC', + ), + 'expected' => array( + 'orderby' => 'price', + 'order' => 'DESC', + 'meta_key' => '', + ), + ), ); foreach ( $data as $test ) {