746d062f09
* Add get_oldest_orders function to customer data store * Check if is first order in is_returning_customer() * Check if the customers first order has changed and update all orders respectively * Fix check for empty oldest_orders array * Change avg_items_per_order to number instead of integer * Fix failing tests for new/returning customers Only the first orders with product 1 and without coupons should be new per each customer * Remove sleep functions from tests * Assign second order to a variable for legibility * Fix second order assignment and check if set |
||
---|---|---|
.. | ||
class-wc-tests-reports-coupons-stats.php | ||
class-wc-tests-reports-coupons.php | ||
class-wc-tests-reports-orders-stats.php | ||
class-wc-tests-reports-products.php | ||
class-wc-tests-reports-revenue-stats.php | ||
class-wc-tests-reports-variations.php |