Mike Jolley
1e3e5a4528
Merge pull request #22580 from woocommerce/fix/22515
...
recalculate coupons after adding coupon to order
2019-01-31 14:38:59 +00:00
Mike Jolley
133d108bd8
Merge pull request #22269 from Prospress/fix/22247
...
convert user creation GMT datestamp to local datetime in API
2019-01-31 12:56:40 +00:00
Ron Rennick
28710a522e
phpcs sniff fixes for orders.php
2019-01-27 20:57:58 -04:00
Ron Rennick
d888f456f8
remove line item subtotal adjustment from api coupon unit test
2019-01-27 20:49:02 -04:00
Refael Iliaguyev
398bbe3754
sniff fixes
2019-01-23 17:26:17 +02:00
Refael Iliaguyev
8f0f22c11b
Fix ssl check in case shop page does not exists.
2019-01-23 16:08:13 +02:00
Ron Rennick
89ab2748da
update unit test to work when timezone_string is not set, add timezone assertions
2019-01-22 16:58:05 -04:00
claudiulodro
cdfe34f79a
skip couple tests on old versions
2019-01-21 10:02:55 -08:00
Mike Jolley
6367d19615
phpcs
2019-01-21 08:11:40 -08:00
Ron Rennick
5dac4075b2
phpcs sniff fixes for customers.php
2018-12-27 11:18:22 -04:00
Ron Rennick
bd65e65285
update customer unit test
2018-12-27 11:02:28 -04:00
claudiulodro
d1533261f5
Extra sanitizing around payment_method_title
2018-11-30 08:49:43 -08:00
Claudio Sanches
13b265a076
Fixed unit tests
2018-09-20 17:48:31 -03:00
Claudio Sanches
ac47cd6394
Test if coupon is invalid
2018-09-11 18:31:02 -03:00
Claudio Sanches
0d49421239
Fixed coding standards
2018-09-11 18:11:31 -03:00
Claudio Sanches
d4b1089150
Fixed unit tests
2018-09-11 18:11:11 -03:00
Claudio Sanches
518d1f0a00
Updated unit tests
2018-09-10 19:26:37 -03:00
Claudio Sanches
61873627a7
Merge branch 'master' into feature/rest-api-v3
2018-09-10 19:16:22 -03:00
Claudiu Lodromanean
ba0a989a38
Merge pull request #21306 from woocommerce/feature/21115
...
[REST API] Reports totals endpoints
2018-09-10 10:23:56 -07:00
Peter Fabian
252670b616
Merge branch 'feature/rest-api-v3' into save-old-tests
...
# Conflicts:
# tests/unit-tests/api/products.php
2018-09-10 16:07:35 +02:00
Peter Fabian
f6ca4db90e
Updated tests for settings endpoint to reflect changes in v3 REST API.
2018-09-10 15:53:41 +02:00
Peter Fabian
ec4000232d
Updated tests to reflect changes for variations in v3 REST API.
2018-09-10 15:49:07 +02:00
Peter Fabian
b6f229238e
Updated payment gateways tests for v3 REST API.
2018-09-10 15:42:46 +02:00
Peter Fabian
f68bef3e24
Update customers endpoint tests for v3 REST API.
2018-09-10 14:20:23 +02:00
Claudio Sanches
047ad849b4
Fixed /reports/products/totals unit tests
2018-09-08 23:10:20 -03:00
Claudio Sanches
14a1217218
Load all product types even when empty
2018-09-08 22:45:51 -03:00
Claudio Sanches
e154b9d0a6
/reports/reviews/totals unit tests
2018-09-08 22:33:59 -03:00
Claudio Sanches
e322f279cd
/reports/products/totals unit tests
2018-09-08 22:33:44 -03:00
Claudio Sanches
570d0aa3e5
/reports/orders/totals unit tests
2018-09-08 22:33:30 -03:00
Claudio Sanches
975d855edc
/reports/customers/totals unit tests
2018-09-08 22:33:14 -03:00
Claudio Sanches
c2b4146db3
/reports/coupons/totals unit tests
2018-09-08 22:32:20 -03:00
Claudio Sanches
bf69627cb1
Unit tests
2018-09-03 11:05:17 -03:00
Rodrigo Primo
7b6fcd18b5
Remove unused code
2018-08-27 17:54:55 -03:00
claudiulodro
00e9af285c
Fix shipping tests and clean up code
2018-08-27 13:14:32 -07:00
Claudiu Lodromanean
0627ef916c
Merge pull request #21165 from woocommerce/fix/21145-2
...
Added tests for _fields query param for system_status/tools endpoint.
2018-08-24 09:42:29 -07:00
claudiulodro
2466728183
Set up unit tests for v3 api and v2 api
2018-08-24 08:49:37 -07:00
Peter Fabian
e2ebf84f65
Updated API version in test to v3.
2018-08-24 17:24:52 +02:00
Peter Fabian
b05cfc6b17
Updated API version in test to v3.
2018-08-24 17:22:38 +02:00
Rodrigo Primo
5f6c729107
Remove unnecessary clean up code from unit tests
...
This commit removes unnecessary clean up code form some unit tests. All database changes done during a test are automatically reverted after the test finishes, so it is not necessary to write code to manually remove them. This change simplifies the test code and make it run a bit faster.
2018-08-23 15:15:17 -03:00
Peter Fabian
cf466aedd8
Added tests for _fields query param for system_status/tools endpoint.
2018-08-23 15:33:58 +02:00
Peter Fabian
c4dc7cb0de
Added test for _fields for system_status endpoint.
2018-08-23 15:19:04 +02:00
Peter Fabian
e8956953ba
Updated test.
2018-08-09 12:22:26 +02:00
Claudio Sanches
355eba85ca
Updated unit tests
2018-07-31 13:46:59 -03:00
Claudio Sanches
7416be5644
Updated unit test class name
2018-07-31 13:36:31 -03:00
Claudio Sanches
ab2514bfd4
Updated unit tests for reviews
2018-07-31 13:33:51 -03:00
Claudiu Lodromanean
9e3da78c73
Merge pull request #20853 from woocommerce/reduce-test-suite-execution-time
...
Reduce WC_Tests_REST_System_Status tests execution time
2018-07-24 10:46:26 -07:00
Rodrigo Primo
f47c9e7842
Reduce WC_Tests_REST_System_Status tests execution time
...
This commit changes WC_Tests_REST_System_Status tests to use artificial HTTP responses instead of performing external HTTP requests. With this change execution time for these tests droped from 22s to 3s.
2018-07-19 14:22:29 -03:00
Peter Fabian
7443a2f906
Switched variation creation to CRUD methods for unit test.
2018-07-09 18:27:56 +02:00
Peter Fabian
3af9c1e95b
Merge branch 'master' into fix/20349
...
# Conflicts:
# tests/framework/helpers/class-wc-helper-product.php
# tests/unit-tests/api/products.php
2018-07-09 18:18:06 +02:00
Peter Fabian
4a42e2a7fc
Added unit tests for query params for variations REST API endpoint.
2018-07-09 17:12:23 +02:00