Brent Shepherd
8ee3e8a6e9
Add WC_Tests_Webhook_Functions::create_webhook()
...
To make it reusable.
2019-01-17 15:12:29 +10:00
Claudiu Lodromanean
989865469e
Merge pull request #22416 from woocommerce/fix/21871
...
Incorrect rounding of multiple tax rates per location
2019-01-16 09:32:51 -08:00
unknown
883ecc3ca4
removed variable that was not being used
2019-01-11 19:19:15 -05:00
Gerhard
c24faa8ab4
Use array_values when checking assertSame for sort comparison of arrays.
2019-01-11 14:02:54 +02:00
Gerhard
0c3f5261c7
Add unit tests for wc_ascii_uasort_comparison
2019-01-11 13:48:37 +02:00
Mike Jolley
a4a421a86b
Failing test case for the issue
2019-01-11 11:34:47 +00:00
Mike Jolley
1815928208
Merge branch 'master' into pr/21217
2019-01-10 13:10:11 +00:00
Mike Jolley
9d381d456b
Remove simplify commerce gateway
2019-01-10 12:01:27 +00:00
Rodrigo Primo
519886838c
Merge pull request #21969 from woocommerce/add/21964
...
Add woocommerce_valid_location_types filter
2019-01-09 17:02:20 -02:00
Rodrigo Primo
8b129a89bf
phpcs fixes
2019-01-09 16:33:38 -02:00
Will Gorham
ec9d1d9402
Tests phpcs
2019-01-09 13:31:51 -05:00
Will Gorham
56fa520b8e
Tests for get_shipping_continents()
2019-01-09 13:31:30 -05:00
Mike Jolley
0620389e46
Merge pull request #22266 from woocommerce/e2e-update-db
...
Update e2e tests database to WP 5.0.1 and WC 3.5.2
2019-01-09 12:14:47 +00:00
Mike Jolley
ade1021eff
Merge pull request #22205 from woocommerce/fix/22200
...
Introduce wc_is_webhook_valid_status
2019-01-08 15:32:57 +00:00
Mike Jolley
9a37852bee
Merge pull request #21438 from woocommerce/fix/20997
...
Unit tests for testing inclusive calculations
2019-01-08 15:31:35 +00:00
Mike Jolley
9644241cef
update from master
2019-01-08 14:51:05 +00:00
Mike Jolley
6dba8f3b05
Merge pull request #21498 from liquidweb/feature/sanitize-order-id-tests
...
Add tests for wc_sanitize_order_id()
2019-01-07 12:46:11 +00:00
JeroenSormani
f4775ccd90
Use shipping method instead of property through magic + doc return statements
2019-01-04 12:41:38 +00:00
Claudiu Lodromanean
2f82039869
Merge pull request #21938 from Prospress/fix/21935
...
Unescape imported escaped CSV formulas in product attributes
2019-01-02 11:59:39 -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
Rodrigo Primo
c6a0c32427
Merge branch 'master' into split-travis-build-job
2018-12-19 11:09:46 -02:00
Rodrigo Primo
ee51edad22
Update e2e tests database to WP 5.0.1 and WC 3.5.2
2018-12-19 13:00:55 +00:00
Ron Rennick
e04b0fff31
use a more appropriate description for new installation tests
2018-12-18 16:28:49 -04:00
Ron Rennick
6079e1f541
ensure WP database is upgraded for current WP version
2018-12-18 16:02:57 -04:00
Ron Rennick
e2f34928d3
update checkout flow for 3.5.0
2018-12-18 14:23:11 -04:00
Ron Rennick
603dd8cfcd
remove redundant form update in cart page tests
2018-12-17 16:05:53 -04:00
Ron Rennick
3ab427f8bf
add config-theme.js to test that a functional supported theme is active
2018-12-17 15:42:20 -04:00
Ron Rennick
729e7083ae
move front end tests to front-end folder
2018-12-17 15:19:34 -04:00
Ron Rennick
a924c15dee
unpdate unit tests for product export
2018-12-13 13:54:51 -04:00
Gerhard
4852db1e45
PHPCS fixes
2018-12-12 10:38:43 +02:00
Gerhard
189f346c2e
Add unit tests for wc_is_webhook_valid_status
2018-12-12 10:33:52 +02:00
Rodrigo Primo
644f6b1cba
Use separate Travis build jobs to run e2e tests and PHPCS
...
This commit creates two new Travis build jobs, one to run the e2e tests and another to run PHPCS. Doing this, instead of running those two checks in the same build job as the PHP 7.2 unit tests, should make the total build time shorter and it should make it easier to see why the build failed.
2018-12-06 09:14:13 -02:00
Rodrigo Primo
f7bc3fb851
Merge pull request #21366 from birgire/unit-tests-count-asserting-21365
...
Use assertCount instead of assertEquals
2018-12-05 11:15:52 -02:00
claudiulodro
d1533261f5
Extra sanitizing around payment_method_title
2018-11-30 08:49:43 -08:00
Rodrigo Primo
8b85eee2d0
Ignore WP beta releases when setting WP_TESTS_TAG
...
This commit changes the regular expression used to determine the WP_TESTS_TAG variable to ignore WP beta releases otherwise install_test_suite() will fail to download the test suite. This is part of workaround to run WooCommerce unit tests using PHP 7.3 and WP 5.0 beta-5.
2018-11-20 14:43:38 -02:00
Gerhard
e4ba5c7f3f
Add unit tests for new woocommerce_valid_location_types filter.
2018-11-19 13:21:02 +02:00
Claudiu Lodromanean
900d3bad93
Merge pull request #21778 from woocommerce/fix/21426
...
Make get_on_sale_products not include non published parent results
2018-11-06 15:50:31 -05:00
claudiulodro
0fa1448cfe
Topic blacklist
2018-11-02 10:21:30 -07:00
Gerhard
0bb4ef713b
Add tests to make sure draft parent products are not included in the get_on_sale_products results
2018-11-01 12:13:47 +02:00
Gerhard
be5775a28c
Add unit test for wc_checkout_fields_uasort_comparison
2018-10-31 08:46:49 +02:00
AlexeyKhmyrov
c432c619d1
Change unit tests for wc_format_dimensions()
2018-10-23 13:56:27 -05:00
Rodrigo Primo
12af00e38f
Merge pull request #21605 from woocommerce/fix/21578
...
Fix: WC_Product::get_image() should use $attr parameter
2018-10-18 14:34:02 -03:00
Claudiu Lodromanean
c994956f03
Merge pull request #21573 from woocommerce/fix/21548
...
Simplified path check for CSV importer to cause less issues
2018-10-18 07:56:34 -07:00
Rodrigo Primo
05aa357b98
Add unit tests for WC_Product::get_image()
2018-10-17 19:40:57 -03:00
Rodrigo Primo
bbf6282d07
Simplify WC_Product_Simple tests
...
Use setUp() method to define a product object that is used in all the tests instead of duplicating code and creating a product object in every test.
2018-10-17 19:22:16 -03:00
Steve Grunwell
550b309901
Merge branch 'master' into feature/sanitize-order-id-tests
2018-10-17 02:21:04 +00:00
Steve Grunwell
6f77040eb4
Since PHP 5.2 runs a *really* old version of PHPUnit (that doesn't support the @testWith annotation), run the scenarios in a single test case
2018-10-17 02:05:10 +00:00
claudiulodro
ccdf6d0253
Simplified path check for CSV importer to cause less issues
2018-10-15 13:50:34 -07:00
Rodrigo Primo
2854f8654b
Add two unit tests for wc_dropdown_variation_attribute_options()
...
Those two tests covers only the basic functionality of this function.
2018-10-15 12:20:31 -03:00
Claudiu Lodromanean
e0d31107ea
Merge pull request #21523 from woocommerce/fix/21509
...
Fix DB log handler cleanup
2018-10-12 08:22:22 -07:00
claudiulodro
4be0018c09
Backwards compatibility in unit test
2018-10-11 13:31:37 -07:00
Claudio Sanches
06e5fe1fd8
Fixed coding standards in unit tests
2018-10-11 13:31:37 -07:00
claudiulodro
c9c12c2518
Initial implementation
2018-10-11 13:31:37 -07:00
claudiulodro
cf96455559
Add test to verify issue
2018-10-11 13:31:37 -07:00
claudiulodro
5f2b915f18
Add filter for ease of extensions
2018-10-11 13:31:30 -07:00
claudiulodro
75bfc8e4bb
Add unit tests
2018-10-11 13:31:30 -07:00
Rodrigo Primo
b9c364a475
Add call to parent::tearDown()
...
It is usually necessary to call parent::tearDown(); when extending tearDown() to make sure WordPress cleanup routines are executed after each test.
2018-10-11 13:31:27 -07:00
claudiulodro
f2422a284a
Remove filter after running tests
2018-10-11 13:31:27 -07:00
claudiulodro
26b188569b
Add filter for disabling file path check
2018-10-11 13:31:27 -07:00
claudiulodro
441fe32f0b
Add filetype checking for all files located on the server
2018-10-11 13:31:18 -07:00
Rodrigo Primo
2a08fa3a7b
Add test to check WC_Log_Handler_DB::delete_logs_before_timestamp() basic functionality
2018-10-11 15:25:12 -03:00
Rodrigo Primo
402144893b
Remove unnecessary code to cleanup tests
...
WP test case cleans the database automatically after each test so there is no need to do it automatically.
2018-10-11 15:11:28 -03:00
Rodrigo Primo
af32bfe329
Fix phpcs violations automatically using phpcbf
2018-10-11 15:10:46 -03:00
Claudiu Lodromanean
4b9ab4b8db
Merge pull request #21513 from scottcwilson/readme_assert
...
Fixes #21363 Recommends using assertSame rather than assertEquals
2018-10-10 09:07:14 -07:00
Scott C Wilson
bdf406eb1e
Fixes #21363 Recommends using assertSame rather than assertEquals
2018-10-09 07:34:54 -04:00
Steve Grunwell
c3b76a38f7
Add a test for handling errors during order status transitions
2018-10-06 18:09:44 +00:00
Steve Grunwell
65cda44fe6
Add tests for wc_sanitize_order_id()
...
This commit adds four test cases (via a PHPUnit data provider) for the `wc_sanitize_order_id()` function.
While writing the tests, it was also discovered that the function was returning a *string*, not an integer as indicated by the DocBlock, so explicit type-casting was added.
2018-10-04 13:53:55 +00:00
Claudiu Lodromanean
543c63072d
Merge pull request #21461 from dgwatkins/master
...
The orderby=ID argument needs to be uppercase.
2018-10-03 10:13:53 -04:00
Claudiu Lodromanean
2368c4d4a8
Merge pull request #21448 from dyszczo/bugfix/logger-instance-warning
...
Fix for warning in wc_get_logger when woocommerce_logging_class retur…
2018-10-03 10:05:25 -04:00
David Garcia Watkins
7a55f67f47
Fix test
2018-09-28 18:46:05 +02:00
Claudiu Lodromanean
9f77ef8526
Merge pull request #21455 from woocommerce/fix/20912
...
Change query to save session data
2018-09-27 10:39:46 -07:00
Claudiu Lodromanean
f5d5cad65c
Merge pull request #21241 from woocommerce/fix/21226
...
Revise coupon logic and add tests.
2018-09-27 08:58:47 -07:00
Rodrigo Primo
4ca5afe248
Add unit tests to cover some of the WC_Session_Handler methods
2018-09-26 14:48:28 -03:00
dyszczo
6019e91e5e
php 5.3 compatibility
2018-09-26 15:53:52 +02:00
dyszczo
94ed5a2460
fix for wc_logger test
2018-09-26 15:37:08 +02:00
dyszczo
7f5122d502
Fix for warning in wc_get_logger when woocommerce_logging_class returns valid logger instance
2018-09-26 12:56:59 +02:00
claudiulodro
f14463e07a
Unit tests for testing inclusive calculations
2018-09-25 10:41:23 -07:00
Claudio Sanches
13b265a076
Fixed unit tests
2018-09-20 17:48:31 -03:00
Birgir E
62e3418267
init
2018-09-16 12:09:50 +00:00
Claudiu Lodromanean
ea9aa8cd59
Merge pull request #21344 from Chouby/fix_testcase
...
setUpBeforeClass must always call its parent
2018-09-14 10:53:04 -07:00
Gerhard Potgieter
9a15f422c3
Add unit test for wc_sanitize_endpoint_slug
2018-09-14 09:42:19 +02:00
Frédéric Demarle
620008d46a
setUpBeforeClass must always call its parent
2018-09-13 13:35:22 +02: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