Gerhard Potgieter
370c200076
Make wc_array_cartesian test use predefined array for testing against instead of relying on product attributes.
2018-07-16 12:59:01 +02:00
Gerhard Potgieter
9e495478f4
Add unit test for wc_decimal_to_fraction
2018-07-11 15:17:00 +02:00
Gerhard Potgieter
a28253739f
Add wc_get_permalink_structure unit test
2018-07-11 15:10:55 +02:00
Gerhard Potgieter
0c01b6c3bb
Add wc_get_credit_card_type_label unit test
2018-07-11 15:05:18 +02:00
Gerhard Potgieter
1d5605c9dc
Add wc_array_cartesian unit test
2018-07-11 14:59:05 +02:00
Gerhard Potgieter
2f7e42bb2f
Add wc_get_theme_support unit test
2018-07-11 14:38:33 +02:00
Gerhard Potgieter
eb533d0263
Update test_get_woocommerce_currencies to test for both cached and uncached currencies, gives us more code coverage
2018-07-11 14:25:42 +02:00
Gerhard Potgieter
bc3c780b92
PHPCS fixes
2018-07-09 13:04:16 +02:00
Gerhard Potgieter
1fdcf2a238
Fix log file deletion functionality.
2018-07-09 13:01:23 +02:00
Claudiu Lodromanean
2a3cedddcd
Merge pull request #20520 from woocommerce/feature/product-custom-tables-supporting-changes
...
Product custom tables supporting changes
2018-06-27 08:57:50 -07:00
Gerhard Potgieter
2df62edec1
Improve the replacement for wc_format_phone_number a bit more, seems like we allow spaces and plus signs, remove non visible unicode with seperate preg_replace
2018-06-27 09:37:44 +02:00
Rodrigo Primo
b6e73f528b
Merge branch 'master' into feature/product-custom-tables-supporting-changes
2018-06-15 14:56:31 -03:00
Claudiu Lodromanean
c203ff16d9
Merge pull request #20482 from woocommerce/fix/20452
...
Avoid price setting when synced with children
2018-06-15 09:05:13 -07:00
Mike Jolley
9a550c4a35
Update to correct type in unit test
2018-06-14 16:34:36 +01:00
Claudiu Lodromanean
73dbec001a
Merge pull request #20456 from JPry/custom_coupon_item_limit
...
Custom coupon item limit
2018-06-13 09:57:47 -07:00
Mike Jolley
77e887efe9
code standards
2018-06-13 16:55:39 +01:00
Mike Jolley
31058ac215
Tests -> CRUD
2018-06-13 16:30:42 +01:00
Gerhard Potgieter
ab769eb8a7
Update test_save_default_attributes to make use of propper attributes before checking defaults
2018-06-13 15:49:38 +02:00
Mike Jolley
812586742b
Allow only valid default attributes
2018-06-13 14:33:13 +01:00
Mike Jolley
9ec7eba0f6
update image URLs
2018-06-13 11:53:30 +01:00
Mike Jolley
c37f724326
Break up tests/test contents
2018-06-13 11:39:28 +01:00
Mike Jolley
01a3e359c3
Merge branch 'master' into feature/product-custom-tables-supporting-changes
2018-06-13 10:18:38 +01:00
Rodrigo Primo
69e1547cd9
Update e2e tests database to the latest WC db version
2018-06-12 09:02:40 -03:00
Brent Sessions
8fc43f0cad
Skip upload from forks ( #20462 )
...
This will skip the uploading of screenshots if the S3 key is not present. This will happen when there is a PR for a fork submitted.
* Skip upload from forks
* trying with failing test
* Fixing tests
* need a rebuild
2018-06-11 13:59:59 -03:00
Gerhard Potgieter
3b9d403b02
Add geolocation::get_ip_address tests
2018-06-11 11:10:11 +02:00
Claudiu Lodromanean
3d4dfda568
Merge pull request #20435 from rnaby/070618-212333-wc-privacy-exporters-customer_data_exporter
...
Removed unnecessary parameter. Also removed from tests.
2018-06-08 11:34:42 -07:00
Jeremy Pry
a2d3313b36
Add unit tests around coupon item limit setting
...
Also updates the `WC_Helper_Coupon` class to make it easier to register custom coupon types during tests.
For #20455
2018-06-08 14:17:39 -04:00
Rodrigo Primo
c2616b74f2
Merge pull request #20439 from woocommerce/update/improve-e2e-screenshots
...
Only try to upload screenshots if directory is not empty
2018-06-08 09:34:45 -03:00
Claudiu Lodromanean
dc20237f40
Merge pull request #20426 from woocommerce/fix/20386
...
Made path /orders/refund_id return invalid order id msg instead of error.
2018-06-07 10:50:46 -07:00
Khan M Rashedun-Naby
4b14cbc727
Removed unnecessary parameter. Also removed from tests.
2018-06-07 21:25:13 +06:00
Rodrigo Primo
cc4871e5ca
Only try to upload screenshots if directory is not empty
...
This commit adds a check before the code that uploads screenshots of failed e2e tests to make it run only if running the Travis build job that executed the tests and if the screenshots/ directory is not empty. There is no need to always download Travis artifacts and try to upload to S3 if there is nothing to upload.
2018-06-07 11:50:36 -03:00
Brent Sessions
c64a35300a
Take screenshots of failed e2e tests ( #20313 )
...
This adds screenshots for broken e2e tests. The screenshots will also be uploaded to an Amazon S3 instance from Travis CI so they can be viewed. If run locally, there will be a screenshots directory created where they can be viewed
If there is a failed e2e test you'll see a block under `travis.sh after` in the build log in Travis CI that will give the URLs for the images.
* Adding screenshot capabilities to all tests
* trying screenshots on S3
* try to get a failed test
* finding the right path
* fixing yml
* only taking failed screenshots
* fixing yml
* moving paths to env
* fixing target
* try without artifact target
* fixing test
* setting back temporary changes
* fixing spacing
* unneeded change
* trying different uploader
* Force a failed test
* fixing test again
* fixing unneeded change
* updating git ignore
2018-06-07 11:31:37 -03:00
Peter Fabian
b5c420de99
Fixed milestone according to issue tag.
2018-06-07 15:36:27 +02:00
Peter Fabian
185675c69e
Added unit test to cover the orders/refund_id.
2018-06-07 14:58:53 +02:00
Mike Jolley
4df54b4e53
Merge branch 'master'
2018-06-07 11:24:12 +01:00
Mike Jolley
58c5ddc8d0
Remove test
2018-06-07 11:23:11 +01:00
Gerhard Potgieter
0d8f002769
Unset the server variable on teardown to avoid out of memory errors
2018-06-01 14:49:02 +02:00
Rodrigo Primo
7979ea6b1a
Use ob_end_clean() instead of ob_get_clean()
...
Doing this change since the content of the output buffer is not used.
2018-05-29 09:02:40 -03:00
Gerhard Potgieter
b3a9d5b4c2
Remove unused variables
2018-05-29 07:33:19 +02:00
Gerhard Potgieter
dbd476e7de
Add unit tests for importing taxes
2018-05-28 11:18:42 +02:00
Gerhard Potgieter
54b23918b9
Fix broken system status unit test, https://github.com/woocommerce/woocommerce/pull/20231 introduced a new item to the schema
2018-05-25 14:19:14 +02:00
Mike Jolley
58b9be29b9
Merge pull request #20191 from woocommerce/fix/20186
...
Product import from file on server
2018-05-25 12:29:27 +01:00
Gerhard Potgieter
2f9c9e4954
Fix server file upload test
2018-05-25 13:00:59 +02:00
Mike Jolley
f05167df17
Merge pull request #20222 from liquidweb/fix/iso-3166-1-alpha-2
...
Ensure tests use ISO 3166-1 alpha-2 country codes
2018-05-25 10:32:48 +01:00
Mike Jolley
171139295c
Merge pull request #20193 from woocommerce/fix/20192
...
Fix WC_Coupon constructor with Coupon object
2018-05-25 10:29:38 +01:00
Steve Grunwell
4bbf9c364d
Ensure tests use ISO 3166-1 alpha-2 country codes
...
[According to the WooCommerce wiki](https://github.com/woocommerce/woocommerce/wiki/Order-and-Order-Line-Item-Data ) and `WC_REST_Orders_Controller`, WooCommerce stores country codes using the ISO 3166-1 alpha-2 (2 character) standard. However, the `WC_Tests_Order_Functions::test_wc_get_order_address_params()` test method was using 'USA' instead of 'US'.
2018-05-24 20:50:01 +00:00
Peter Fabian
082c1dfaf3
Excluded children categories from WP_Query in product shortcode if cat_operator=AND.
2018-05-24 16:12:48 +01:00
Gerhard Potgieter
3c2221a4b0
Add a exception test to coupon delete
2018-05-24 12:37:52 +02:00
Gerhard Potgieter
9bc6ca5df3
Fix the coupon data store delete unit test, you should not have been able to create a new datastore from a deleted coupon ID. See product data store tests are reference for this.
2018-05-24 12:26:36 +02:00
Gerhard Potgieter
07c18b59f0
Add unit test to test again passing a coupon object in the constructor
2018-05-24 11:28:24 +02:00