Mike Jolley
402d0ff077
Merge branch 'master' into 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:43:31 +01:00
Justin Shreve
de4296dd15
Add some missing API pieces:
...
* Value was missing from the settings schema (but was still present in the response).
* Added delete endpoint for shipping zones.
* Corrected permissions check/error for shipping zone methods.
2016-08-29 10:22:29 -07:00
Aristeides Stathopoulos
f2730eea02
WordPress.WhiteSpace.ControlStructureSpacing.BlankLineAfterEnd
2016-08-27 08:57:05 +03:00
Aristeides Stathopoulos
82f3cc221e
WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceBeforeOpenParenthesis
2016-08-27 07:23:02 +03:00
Justin Shreve
147c18c197
Add the ability to update/create/delete shipping method instances
2016-08-25 20:34:26 -07:00
Justin Shreve
9396c5436b
Make sure that the create shipping zone uses the correct permissions function. Also makes sure creating the shipping zone returns 201, with the location of the new entity, like other endpoints.
2016-08-02 10:26:26 -07:00
Justin Shreve
9a03eb4407
Use the new API test base for shipping zone tests.
2016-08-02 10:10:47 -07:00
Justin Shreve
33e0b367ac
Add new line at end of files.
2016-08-02 10:10:47 -07:00
Jeff Stieler
105064ad26
Test coverage for getting a single shipping zone method.
2016-08-02 10:10:47 -07:00
Jeff Stieler
e007bc1778
Test coverage for all shipping zone methods endpoint.
2016-08-02 10:10:47 -07:00
Jeff Stieler
cdc90f5633
Test coverage for shipping zone method routes.
2016-08-02 10:10:47 -07:00
Jeff Stieler
b9a0367cfa
Test coverage for update shipping zone locations endpoint.
2016-08-02 10:10:47 -07:00
Jeff Stieler
e5fac4911e
Test coverage for requesting shipping zone locations with an invalid ID.
2016-08-02 10:10:47 -07:00
Jeff Stieler
0db15c5328
Add test coverage for shipping zone locations retrieval endpoint.
2016-08-02 10:10:47 -07:00
Jeff Stieler
9946d028f2
Add “described by” link to shipping zones endpoint response.
2016-08-02 10:10:47 -07:00
Jeff Stieler
9b564b87b1
Add test coverage to single shipping zone retrieval endpoint.
2016-08-02 10:10:47 -07:00
Jeff Stieler
6a9ba5b9f3
Add test coverage for shipping zone update endpoint.
2016-08-02 10:10:47 -07:00
Jeff Stieler
e037cf661e
Add test coverage to shipping zone creation endpoint.
2016-08-02 10:10:47 -07:00
Jeff Stieler
3492f397d4
Add test coverage for shipping zone schema endpoint.
2016-08-02 10:10:47 -07:00
Jeff Stieler
e4ccede35f
Test coverage for /shipping/zones.
...
Covers success, shipping disabled, and insufficient permissions cases.
2016-08-02 10:10:47 -07:00
Jeff Stieler
bbe5ffc295
Add helper method to create shipping zones during testing.
2016-08-02 10:10:47 -07:00
Jeff Stieler
2a7e81a809
Initial Shipping Zones unit test coverage, testing route registration.
2016-08-02 10:10:47 -07:00