woocommerce/plugins/woocommerce-admin/tests/reports
Joshua T Flowers 746d062f09 Check and update customer first orders to fix returning_customers (https://github.com/woocommerce/woocommerce-admin/pull/1517)
* 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
2019-02-14 11:14:01 +08:00
..
class-wc-tests-reports-coupons-stats.php Fix unit tests that rely on queued data updates. 2019-02-04 09:18:50 -07:00
class-wc-tests-reports-coupons.php Fix unit tests that rely on queued data updates. 2019-02-04 09:18:50 -07:00
class-wc-tests-reports-orders-stats.php Check and update customer first orders to fix returning_customers (https://github.com/woocommerce/woocommerce-admin/pull/1517) 2019-02-14 11:14:01 +08:00
class-wc-tests-reports-products.php Fix test_variable_product_extended_info (https://github.com/woocommerce/woocommerce-admin/pull/1498) 2019-02-07 10:49:50 +01:00
class-wc-tests-reports-revenue-stats.php Fix unit tests that rely on queued data updates. 2019-02-04 09:18:50 -07:00
class-wc-tests-reports-variations.php Fix unit tests that rely on queued data updates. 2019-02-04 09:18:50 -07:00