Rodrigo Primo
16a44964f1
Remove unused code from WC_Tests_Install::test_check_version()
...
To test the method WC_Install::check_version() it is not necessary to update the of the option 'woocoommerce_db_version' as this method uses only 'woocommerce_version'.
2018-02-05 14:40:43 -02:00
Rodrigo Primo
13351b3d75
phpcs fixes
...
Removed the print_r() call as phpcs was complaining about it and there is no need to output the version values as phpunit will do that if the test fails.
2018-02-05 14:40:36 -02:00
Mike Jolley
db54911443
Merge pull request #18752 from woocommerce/refactor/background-processing
...
Introduced new WC_Background_Process abstract class
2018-02-01 16:18:56 +00:00
Claudio Sanches
b811dbbaec
Applied new WC_Background_Process class
2018-02-01 11:42:34 -02:00
Mike Jolley
2ed9691c14
Fix shop on homepage with unsupported themes
2018-02-01 11:15:46 +00:00
Mike Jolley
c8b14b6f76
Increase precision from 4 to 6
2018-01-30 15:00:53 +00:00
Claudiu Lodromanean
1e2cdb67ad
Merge pull request #18535 from woocommerce/update/disable-all-payment-gateways-by-default
...
Disable all payment gateways by default
2018-01-22 11:04:21 -08:00
Steve Grunwell
183c1e9f9f
Add 'public' visibility declarations to coupon test methods
2018-01-22 04:13:13 +00:00
Steve Grunwell
553aede081
Use strict comparison in test_wc_coupons_enabled()
2018-01-22 04:11:02 +00:00
Steve Grunwell
031469f643
Remove an unused variable in the test
2018-01-22 04:10:38 +00:00
Steve Grunwell
21771ebbd3
Ensure that WP_Coupon instances are instantiated with parentheses
2018-01-22 04:10:14 +00:00
Steve Grunwell
7cb8f46b0a
*WHITESPACE ONLY* Equal sign and arrow alignment
2018-01-22 04:06:42 +00:00
Steve Grunwell
0766ed6ff7
Fix (or whitelist) coding standards violations in the test bootstrap file
2018-01-22 03:34:13 +00:00
Steve Grunwell
bb5417c102
require_once is a language construct, not a function, and thus doesn't require parentheses.
2018-01-22 03:24:52 +00:00
Paul Dechov
0eebd2b72a
Update payment gateway default enabled state in tests
2018-01-19 17:42:17 -05:00
Brent Sessions
a01270f392
Rearranging some variables
2018-01-18 12:36:22 -08:00
Brent Sessions
45bf9d6805
Update install script to account for forked branch
2018-01-18 12:26:46 -08:00
Brent Sessions
e372d55a3c
Run e2e tests on Travis builds ( #18374 )
2018-01-18 16:42:19 -02:00
Mike Jolley
dbdc3af9e5
Tests
2018-01-12 14:20:39 +00:00
Mike Jolley
97673e2de8
Fix wc_notice_count logic and add test
2018-01-10 12:43:48 +00:00
Mike Jolley
13602cd987
Merge pull request #18236 from woocommerce/fix/rest-api-add-coupons-order
...
REST API: Adding + removing coupons via API doesn't recalculate totals correctly
2018-01-03 11:37:23 +00:00
Mike Jolley
ea090f849d
Merge pull request #18148 from woocommerce/update/e2e
...
Update e2e testing
2018-01-03 11:17:50 +00:00
claudiulodro
09ef2195be
Manual set order tests
2017-12-22 11:35:52 -08:00
Claudiu Lodromanean
20f698db2b
Merge pull request #18219 from woocommerce/fix/18197
...
Compare the date modified when loading session data.
2017-12-22 08:17:14 -08:00
Mike Jolley
e9105bd37d
Fix tests
2017-12-21 19:00:55 +00:00
claudiulodro
1c8dd6acbb
Proposed fix for api coupon recalculating
2017-12-20 11:37:35 -08:00
Kelly Dwan
70455b79a3
Add failing tests to demonstrate problem adding & removing coupons
2017-12-19 16:46:26 -05:00
claudiulodro
b7c659ca07
Fix php <=5.6 errors
2017-12-19 11:37:37 -08:00
claudiulodro
cff662ac47
phpcs
2017-12-19 09:30:02 -08:00
claudiulodro
3461fd2a3a
Array access tests
2017-12-19 09:22:17 -08:00
claudiulodro
2c884c0003
Progress on order item tests
2017-12-18 14:45:39 -08:00
Claudio Sanches
e68c28589b
Merge pull request #18216 from woocommerce/update/phpcs-ruleset-file-name
...
Use default name for PHPCS configuration file
2017-12-18 12:56:25 -02:00
Claudiu Lodromanean
df2aded066
WC_Query unit tests ( #18180 )
...
* Begin WC_Query tests
* Some tests
* WC_Query unit tests
2017-12-18 12:01:27 -02: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
Rodrigo Primo
bf052c14c7
Use default name for PHPCS configuration file
...
This commit renames PHPCS configutarion file to `phpcs.xml`. With the default name, it is not necessary to use the argument `--standard=phpcs.ruleset.xml` anymore when calling `phpcs`.
2017-12-18 11:49:44 -02:00
Gerhard Potgieter
d512421fa1
Make the test work on any test platform
2017-12-15 14:51:47 +02:00
Gerhard Potgieter
58457dab3a
Unit tests for wc_is_active_theme
2017-12-15 14:43:56 +02:00
Claudiu Lodromanean
650faf6450
Merge pull request #18169 from woocommerce/add/unit-tests
...
Widget unit tests
2017-12-14 13:19:21 -08:00
Mike Jolley
1555507756
Merge pull request #18123 from woocommerce/update/setup-wizard-omit-paypal-standard
...
Setup wizard: Omit PayPal Standard unless plugins cannot be installed
2017-12-14 16:42:03 +00:00
Gerhard Potgieter
549b4bfa1a
Widget unit tests
2017-12-14 13:57:53 +02:00
Gerhard Potgieter
276bff133f
Improve unit test coverage ( #18136 )
...
* Test for main WooCommerce class
* Check all class instances created from main class.
* Test all constants
* Test for deprecated hook handler classes as well
* Test template path constant
* Check static class instances
* get_cart_item_quantities test
* get_cart_item_quantities & get_cart_contents_weight tests
* check_cart_items test
* Check_cart_item_stock test
* Cart get_cross_sells test
* Cart get_tax_totals test
* WC_Customer_Download_Data_Store tests
2017-12-14 08:45:00 -02:00
Gerhard Potgieter
2f477887fb
Merge branch 'master' of github.com:woocommerce/woocommerce into add/unit-tests
2017-12-14 10:56:01 +02:00
Gerhard Potgieter
89d0aa0a2f
WC_Customer_Download_Data_Store tests
2017-12-14 10:12:56 +02:00
claudiulodro
da5eb4abd4
Update e2e sql db
2017-12-13 12:58:18 -08:00
claudiulodro
f6f8c93e26
Update e2e tests and library
2017-12-13 12:14:53 -08:00
Claudiu Lodromanean
b0189363c2
Merge pull request #18137 from woocommerce/fix/failing-get-billing-email-test
...
Add exception message to fix failing test
2017-12-13 09:51:44 -08:00
Gerhard Potgieter
b39ab218dd
Cart get_tax_totals test
2017-12-13 16:42:09 +02:00
Paul Dechov
8f3de46637
Merge branch 'master' into update/setup-wizard-omit-paypal-standard
2017-12-13 09:41:25 -05:00
Paul Dechov
f4c557a9be
Add test verifying that the correct list of payment gateways is returned per country
2017-12-13 09:35:43 -05:00
Gerhard Potgieter
deb2ad8f40
Cart get_cross_sells test
2017-12-13 16:33:17 +02:00