woocommerce/plugins/woocommerce-admin/tests
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
..
api Make customer object IDs compatible with `wc-api`/`fresh-data`. 2019-02-12 11:08:03 -08:00
framework/helpers Merge pull request woocommerce/woocommerce-admin#1461 from woocommerce/fix/1460 2019-02-05 16:21:43 -02:00
js Add Feature Flags (https://github.com/woocommerce/woocommerce-admin/pull/1500) 2019-02-12 15:02:02 -05:00
reports 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
api-init.php Merge pull request woocommerce/woocommerce-admin#1510 from woocommerce/fix/532-wc-install-approach 2019-02-12 13:05:48 -08:00
batch-queue.php Fix method calls in test suite (functions moved classes). 2019-02-08 13:19:20 -08:00
bootstrap.php Merge pull request woocommerce/woocommerce-admin#1510 from woocommerce/fix/532-wc-install-approach 2019-02-12 13:05:48 -08:00
test-sample.php Fix linting errors in tests/test-sample.php 2018-10-23 09:57:45 -04:00