Corrected failing tests.

This commit is contained in:
Peter Fabian 2018-11-02 12:24:21 +01:00
parent 3c490a5ce6
commit a1f2c867f4
2 changed files with 42 additions and 28 deletions

View File

@ -77,6 +77,8 @@ class WC_Tests_Reports_Orders extends WC_Unit_Test_Case {
'num_items_sold' => 4,
'avg_items_per_order' => 4,
'avg_order_value' => 97,
'num_returning_customers' => 0,
'num_new_customers' => 1,
),
),
),
@ -96,6 +98,11 @@ class WC_Tests_Reports_Orders extends WC_Unit_Test_Case {
'avg_order_value' => 97,
'orders_count' => 1,
'avg_items_per_order' => 4,
'num_items_sold' => 4,
'coupons' => 20,
'num_returning_customers' => 0,
'num_new_customers' => 1,
'products' => '1',
),
'intervals' => array(
array(
@ -109,6 +116,10 @@ class WC_Tests_Reports_Orders extends WC_Unit_Test_Case {
'avg_order_value' => 97,
'orders_count' => 1,
'avg_items_per_order' => 4,
'num_items_sold' => 4,
'coupons' => 20,
'num_returning_customers' => 0,
'num_new_customers' => 1,
),
),
),

View File

@ -80,6 +80,8 @@ class WC_Admin_Tests_Reports_Revenue_Stats extends WC_Unit_Test_Case {
'net_revenue' => 80,
'avg_items_per_order' => 4,
'avg_order_value' => 97,
'num_returning_customers' => 0,
'num_new_customers' => 1,
),
),
),
@ -102,6 +104,7 @@ class WC_Admin_Tests_Reports_Revenue_Stats extends WC_Unit_Test_Case {
'taxes' => 7,
'shipping' => 10,
'net_revenue' => 80,
'products' => '1',
),
'intervals' => array(
array(