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
Mike Jolley
1238a37124
Merge pull request #10576 from justinshreve/coupon-crud
...
Coupon CRUD
2016-03-18 11:12:32 +00:00
Justin Shreve
e65ab6adec
start transfering things to billing_ prefix
2016-03-17 12:39:29 -07:00
Justin Shreve
0f1f6dddd1
Finish customer crud tests
2016-03-17 09:41:12 -07:00
Justin Shreve
8dbe673c89
Fix loading meta fields that are not address fields. Add some tests related to CRUD, and add stubs for the rest of the tests we will add.
2016-03-17 09:41:12 -07:00
Justin Shreve
57f918fb03
Add Coupon REST API tests to verify nothing breaks API wise -- full set of tests even though we are just changing GET endpoints (increases test coverage)
2016-03-17 09:19:28 -07:00
Justin Shreve
5d6cdd05f1
Finish out tests, make sure to use cprrect meta ID field in order by clause.
2016-03-14 11:12:47 -07:00
Justin Shreve
97c0edf445
Start on tests for testing CRUD meta.
...
Includes Mock object for testing against the abstract WC_Data.
2016-03-14 11:12:47 -07:00
Justin Shreve
ea260254c1
Fix feedback.
2016-03-14 09:41:37 -07:00
Justin Shreve
5dbfc7ae16
Fix Payment Token 'set default' methods. Makes sure we are using the user ID of the payment token, and not the current user.
...
Also makes sure to properly unset other tokens when a new one is set as default. Finally, we make sure that a user is always set in our payment token tests (which was broken in some WP versions which alerted us to some broken tests).
2016-03-14 09:41:37 -07:00
Justin Shreve
8f27a3b3af
Full set of tests for the payment token API
2016-03-01 11:49:40 -08:00
Mike Jolley
bdb8de7785
Zone unit tests
2016-01-08 14:53:24 +00:00
Mike Jolley
a33b9b9750
Unit tests for shipping zones
2016-01-08 13:56:01 +00:00
Claudio Sanches
5893875b0c
Removed period for file headers
2015-11-03 11:53:50 -02:00
Claudio Sanches
ee30b5b308
Fixed php docs standards
2015-11-03 11:31:20 -02:00
Claudio Sanches
0361a10e26
Removed instances of WC_Order in favor to wc_get_order(), closes #8689
2015-07-30 15:07:34 -03:00
Claudio Sanches
7d4a531703
Fixed tests for variable products
2015-07-28 13:07:48 -03:00
Claudio Sanches
ac8f18a721
Fixed unit tests
...
@mikejolley
2015-07-08 23:40:29 -03:00
Mike Jolley
6773b74770
Unit test - customer_address is geolocated
2015-07-07 12:36:06 +01:00
Mike Jolley
1f79a116e9
Fix create_simple_flat_rate helper
2015-06-16 14:48:06 +01:00
Justin Shreve
651b65f28e
Add a unit test for get_variation_id so we know we are getting back the IDs that we want
2015-06-09 13:02:02 +00:00
JeroenSormani
7dde4f58c7
WC_Helper_Order class convert tab alignment to spaces
2015-05-23 10:57:06 +02:00
JeroenSormani
280904f9b4
WC_Helper_Order order total correct
2015-05-23 10:54:14 +02:00
JeroenSormani
59a4ca5fa6
Add WC_Helper_Order class
2015-05-23 10:52:06 +02:00
shivapoudel
db012b03df
Cleanup WC_Unit_Test_Case
2015-02-04 22:07:52 +05:45
shivapoudel
b207391041
Unit Test docblock comment for setUp
2015-02-04 22:03:01 +05:45
Claudio Sanches
b3cf6435b9
Merge pull request #6927 from purcebr/master
...
Unit Tests for WC_Customer class
2015-01-05 14:50:54 -02:00
Mike Jolley
8df8c9b482
Make 'public', and rewrite, optional for attributes
...
#6852
2014-12-22 14:16:15 +00:00
Bryan Purcell
bc9821253f
Refactoring and fixing bugs in WC_Customer Unit Tests
2014-12-10 23:54:06 -06:00
Bryan Purcell
0213fcce85
Refactoring, resetting settings after test.
...
Testing multiple combinations of store default shipping methods, moving
helper methods to a unit test Helper Class.
2014-12-10 17:02:43 -06:00
Mike Jolley
549d7ab2c0
Removed 'apply before tax' options for coupons - this should be the default core behaviour
2014-11-24 17:24:25 +00:00
claudiosmweb
956f003175
Unit Tests: Created initial shipping tests and added shipping value for coupon tests
2014-10-30 17:58:19 -02:00
claudiosmweb
8faf3ec85a
Unit Tests: Created test_fixed_product_discount and test_percent_product_discount methods
2014-10-30 16:22:14 -02:00
claudiosmweb
720ef008d7
Unit Tests: Created WC_Helper_Fee class and WC_Tests_Cart::test_cart_fee method
2014-10-30 16:08:33 -02:00
Barry Kooij
4a6b880a41
Unit Tests: updated product class doc.
2014-10-28 11:53:36 +01:00
Barry Kooij
e2df8e9b87
Coupon helper.
2014-10-28 11:51:46 +01:00
Barry Kooij
e5d418305d
Unit Tests: Added assertIsWPError to WC unit test framework
2014-10-24 21:26:26 +02:00
Barry Kooij
6960138876
Unit Tests: force delete on cleanup
2014-10-24 21:14:19 +02:00
Barry Kooij
eabb8eb712
Unit Tests: product helper codestyle
2014-10-24 15:36:29 +02:00
Barry Kooij
f88fe50ab4
Unit Test: Added delete_product helper method.
2014-10-24 15:36:13 +02:00
Barry Kooij
da45bdac12
Unit Testing: Added a product helper class.
2014-10-22 00:26:04 +02:00
Max Rice
b06e1982c9
Register post types before each unit test
...
Fixes #6501
see
https://core.trac.wordpress.org/changeset/29860/trunk/tests/phpunit/incl
udes/testcase.php, apparently we were #doingitwrong 🙈
2014-10-09 15:24:37 -04:00
Max Rice
8a6097be79
Fix typo
2014-09-05 19:36:43 -04:00
Max Rice
ac5076ad8e
Fix failing tests in PHP 5.2
2014-09-05 19:21:31 -04:00
Max Rice
0fbba35c9d
Add factory for webhook unit tests
2014-09-05 14:34:51 -04:00
Max Rice
0e4a4ef787
Add unit tests for notice functions
2014-09-05 02:36:46 -04:00
Max Rice
02adbfa110
Unit Tests: add mock session handler
2014-09-05 02:35:53 -04:00
Max Rice
50253bc8b6
[ #3176 ] Use shop manager role for API tests
2014-09-01 16:11:08 -04:00
Max Rice
27f378bf4e
[ #3176 ] Add unit test framework
2014-09-01 02:04:02 -04:00