MD0123-Hardip
9890ab4164
unit testing changes
2019-06-20 11:37:38 +05:30
Gerhard
f6d9faa062
Introducde wc_load_cart to dynamically load the cart, this allows for functionality outside of frontend to initialise the cart.
2019-05-22 12:24:31 +02:00
Rodrigo Primo
18ee70918b
Fix PHPCS violations in tests/ using PHPCBF
...
This commit fixes all 1533 PHPCS errors that PHPCBF can fix automatically in the tests/ directory. Before this change there was a total of 3106 PHPCS errors in the WooCommerce repository and now there is 1573 errors.
2019-05-01 19:05:00 -03:00
Mike Jolley
d3e2d725e7
prevent test showing content
2019-04-10 13:50:42 +01:00
Mike Jolley
1cd2959087
unset rather than prevent the template being included.
2019-04-03 16:08:12 +01:00
Mike Jolley
2e9ce0a061
unit tests
2019-04-02 15:18:06 +01:00
Mike Jolley
7def966e4f
Impoved JSON handling
2019-02-20 12:00:47 +00:00
Toby Robles
59d4a81f1a
Peruvian currency updated
2019-01-30 10:43:52 -05:00
Mike Jolley
380201be33
Merge pull request #22417 from woocommerce/fix/21175
...
Sort countries using new ascii comparison function
2019-01-22 14:47:41 +00:00
Mike Jolley
6367d19615
phpcs
2019-01-21 08:11:40 -08: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
Gerhard
be5775a28c
Add unit test for wc_checkout_fields_uasort_comparison
2018-10-31 08:46:49 +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
Gerhard Potgieter
73b80c9241
Remove extra asterisk
2018-07-25 14:09:04 +02:00
Gerhard Potgieter
5a0d3c8bf7
Fix indentation issues caused by github conflict tool
2018-07-25 14:07:57 +02:00
Gerhard Potgieter
da82639ebc
Merge branch 'master' into update/core-function-unit-tests
2018-07-25 14:05:12 +02:00
Gerhard Potgieter
1f46caaa4c
Test some edge cases where CC name could be empty or contain a non standard value.
2018-07-16 13:02:24 +02:00
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
a6e7ae15f9
Add unit test for testing wc_get_user_agent
2018-07-11 14:11:31 +02:00
claudiulodro
9c1179856d
Update unit tests
2018-05-01 09:32:29 -07:00
Peter Fabian
4538f3fa8f
Moved wc_selected to core functions.
2018-04-18 15:54:57 +02:00
Mike Jolley
8721d62b67
update test
2018-04-03 14:37:31 +01:00
Mike Jolley
73d0c1062c
Allow transactions to be forced on
2018-01-03 16:13:08 +00:00
Gerhard Potgieter
25c4a84491
Add more core-functions unit tests ( #18190 )
...
* Pass through additional args to wc_create_order in test
* Pass extra args to wc_create_order to improve coverage, test WP_Error check of wc_create_order
* wc_get_template_part test
* wc_enqueue_js test
* wc_get_log_file_name test
* wc_get_page_children test
* hash_equals test
* wc_rand_hash test
* wc_transaction_query test
* Fix script test and phpcs stuff
* Fix widget tests
* Move tests to correct file and fix phpcs
2017-12-18 11:58:40 -02:00