Claudio Sanches
36797a382a
Fixed coding standards for tests
2016-10-04 18:57:01 -03:00
Justin Shreve
c1d7111240
Implement separate variation endpoints for managing a product's variations. Also adds tests.
2016-09-29 14:44:14 -07:00
Justin Shreve
c8ddca0635
Merge pull request #11882 from woothemes/settings-and-api-fixes
...
Settings & API Fixes
2016-09-09 05:52:23 -07:00
Justin Shreve
e1e6c682b5
* Stop using _ as a prefix for protected or private vars and functions. We have a keyword for that.
...
* Introduces set_id and get_id to WC_Data for the CRUD classes to share
2016-09-09 05:36:54 -07:00
Justin Shreve
49676d1781
Hook up email settings to the API
...
Add support for option_key when registering settings, so we can also manage settings that are stored in the array of a single option.
2016-09-08 15:20:15 -07:00
Aristeides Stathopoulos
5280722f21
Squiz.Commenting.InlineComment.SpacingAfter
2016-09-02 05:47:24 +03:00
Aristeides Stathopoulos
bea25afacd
Squiz.Commenting.FunctionComment.SpacingAfter
2016-09-02 03:31:26 +03:00
Mike Jolley
1b2df3dd3b
Merge branch 'pr/11797'
...
# Conflicts:
# includes/admin/meta-boxes/class-wc-meta-box-coupon-data.php
# includes/api/class-wc-rest-coupons-controller.php
# includes/class-wc-coupon.php
# tests/unit-tests/api/coupons.php
# tests/unit-tests/coupon/crud.php
2016-09-01 11:46:05 +01:00
Mike Jolley
d9a0d0988b
Handle meta data and fix unit tests
2016-08-31 15:43:34 +01:00
Aristeides Stathopoulos
f2730eea02
WordPress.WhiteSpace.ControlStructureSpacing.BlankLineAfterEnd
2016-08-27 08:57:05 +03:00
Aristeides Stathopoulos
730069db06
WordPress.Arrays.ArrayDeclaration.SpaceAfterKeyword
2016-08-27 05:39:16 +03:00
Aristeides Stathopoulos
58b9df6564
WordPress.Arrays.ArrayDeclaration.NoSpaceAfterOpenParenthesis
2016-08-27 05:23:54 +03:00
Aristeides Stathopoulos
ec8a0b288b
PHPCS: WordPress.Arrays.ArrayDeclaration.NoCommaAfterLast
2016-08-27 05:08:49 +03:00
Aristeides Stathopoulos
b063bcfe4c
last item in a multiline-array should end in a comma
2016-08-27 04:46:45 +03:00
Mike Jolley
9bd57414c5
Remove set and get prop - no longer need the extra overhead since functions won't return wp_error now.
2016-08-26 10:48:17 +01:00
Mike Jolley
627b08ba37
Test coverage
2016-08-25 17:42:47 +01:00
Mike Jolley
a8e47992a6
Put back add_product for convenience. Fix unit tests.
2016-08-22 18:00:52 +01:00
Mike Jolley
3d696266d2
Set_address
2016-08-22 17:03:59 +01:00
Mike Jolley
c88984eb0e
Replace add methods
2016-08-22 16:48:19 +01:00
Claudio Sanches
80ee7016f8
Fixed conflicts
2016-08-19 20:31:59 -03:00
Mike Jolley
fc386f054b
Delete order after running test
2016-08-15 11:15:03 +01:00
Mike Jolley
f03d439259
Unit test fixes
2016-08-15 11:02:55 +01:00
Justin Shreve
a610c6a804
Update the Customers API to use the WC_Customer CRUD Class
...
Also:
* Introduces Tests for the Customer REST API
* Fixes a few API and test issues from recent CRUD changes
* Adds some missing billing_ and shipping_ meta data functions to Customer CRUD
2016-08-11 10:30:44 -07:00
Mike Jolley
4ac4bcaa08
Merge branch 'master' into WC-CRUD
...
# Conflicts:
# tests/unit-tests/cart/cart.php
2016-08-09 11:08:21 +01:00
Mike Jolley
1c592b3872
Merge pull request #11208 from woothemes/orders-crud-classes
...
Orders crud classes
2016-08-05 15:44:15 +01:00
Mike Jolley
1bc9da3e91
Merge branch 'master' into WC-CRUD
...
# Conflicts:
# includes/class-wc-coupon.php
2016-08-04 12:10:04 +01:00
Mike Jolley
837e08143b
Merge branch 'master' into orders-crud-classes
...
# Conflicts:
# includes/abstracts/abstract-wc-order.php
2016-08-03 12:32:27 +01:00
Justin Shreve
b8ec255ea8
First pass at a product reviews REST API that supports creating/updating/deleting product reviews.
2016-08-02 10:30:43 -07:00
Justin Shreve
ef2715b237
Merge pull request #11082 from woothemes/settings-api
...
Add REST API Endpoints for Settings
2016-07-26 14:22:42 -07:00
Justin Shreve
28611544b8
Remote spy-server
2016-07-26 13:57:30 -07:00
Justin Shreve
48e6be6dcf
Move WP-APIs test server code to a vendor directory, make sure it matches the version of the other vendor files.
2016-07-26 10:24:15 -07:00
Justin Shreve
226fdb870b
Misc cleanup of descriptions and some error strings.
2016-07-26 10:24:15 -07:00
Justin Shreve
3de423b5c2
Wrap up settings api
2016-07-26 10:24:15 -07:00
Justin Shreve
5de870bb08
Wrap up settings endpoints for updating, finish tests.
2016-07-26 10:24:15 -07:00
Justin Shreve
46028e0151
Refactor down to two concepts - settings groups and settings. Fix up tests, and start working on returning actual settings and their values.
2016-07-26 10:24:15 -07:00
Justin Shreve
8fee6bd3b9
Add a test for settings groups, make sure any bad keys/values are filtered out, update docs.
2016-07-26 10:24:15 -07:00
Justin Shreve
12aa11d5be
Misc cleanup.
2016-07-26 10:24:15 -07:00
Justin Shreve
21b66f94ff
More setting location tests.
2016-07-26 10:24:15 -07:00
Justin Shreve
11a3c89a2f
Make /settings/locations work properly. Add skeleton for tests and add register_routes test.
2016-07-26 10:24:15 -07:00
Justin Shreve
671dc8168d
Add new file for creating new unit test files for testing WP-API based WC endpoints.
...
Add WP-API's test-spy-rest-server class to new vendor folder in our test framework.
Create a new unit test case class to extend of of. This can also be a future home for new asserts or methods related to the API tests.
2016-07-25 11:19:44 -07:00
Claudio Sanches
7d9d091767
Fixed mixed tabs and spaces
2016-07-11 16:56:35 +02:00
Antonino Scarfì
44ae333f82
Set product post with 'variable' product type term.
2016-06-30 17:42:03 +02:00
Mike Jolley
9c7abaedcb
Fixed unit tests
2016-06-22 12:29:23 +01:00
Mike Jolley
78142a8ebb
Merge branch 'master' into WC-CRUD
...
# Conflicts:
# includes/class-wc-checkout.php
# includes/class-wc-coupon.php
# includes/class-wc-customer.php
# tests/unit-tests/cart/cart.php
# tests/unit-tests/cart/functions.php
# tests/unit-tests/coupon/coupon.php
# woocommerce.php
2016-06-13 15:01:58 +01:00
Mike Jolley
18b45f55cd
@claudiosmweb unregister_shipping_methods didn't unset correctly - this fixes unit tests
2016-05-26 13:03:40 +01:00
Mike Jolley
7680a3ef89
Clear cache in tests
2016-05-25 12:36:25 +01:00
Mike Jolley
e2139a5c5e
Clear prices transient for variable products after scheduled sale.
2016-03-31 12:03:03 +01:00
Mike Jolley
17d11d76ce
Tests failing due to missing SERVER_NAME
2016-03-23 15:35:06 +00:00
Mike Jolley
2fec0f425a
Remove namespaces from tests for 5.2 support
2016-03-23 12:14:13 +00:00
Justin Shreve
1d35fd6d73
Convert WC_Payment_Tokens (and CC/eCheck tokens) to use the new WC_Data and meta handling code.
2016-03-21 11:06:17 -07:00