Jeremy Pry
cf5bd606c6
Rename register_hooks() to init()
2017-11-08 10:17:52 -05:00
Mike Jolley
827d133cb2
Improve tests
2017-11-08 13:54:33 +00:00
Mike Jolley
0198aa22ac
Fix up test
2017-11-08 12:32:08 +00:00
Mike Jolley
f5c7164ae5
Added a test to confirm this issue is specific to the API
2017-11-08 12:16:22 +00:00
Mike Jolley
6f693d4d1a
Upgrade routine
2017-11-07 19:16:44 +00:00
Mike Jolley
cf448398cd
Update API
2017-11-07 19:08:06 +00:00
MounirHamani
9e3d566038
Update unit test to add new Belarusian currency BYN
2017-11-07 20:04:46 +01:00
Mike Jolley
db4e630600
Replace thumbnail names
2017-11-07 18:48:51 +00:00
MounirHamani
fc220a51a9
Update unit test for old Belarusian currency BYR
2017-11-07 18:50:01 +01:00
Mike Jolley
6701917e5a
Remove need for wc_get_core_supported_themes
2017-11-07 12:17:03 +00:00
Mike Jolley
2de438dbc5
constant
2017-11-06 21:30:00 +00:00
Mike Jolley
d62721dbb5
..and fix tests based on updated constant setting - taxes round down
2017-11-06 21:26:28 +00:00
Mike Jolley
cb61e9dd3d
WC_TAX_ROUNDING_MODE auto to support switching in tests
2017-11-06 21:25:02 +00:00
Mike Jolley
7048d0769c
Restore tests
2017-11-06 21:18:12 +00:00
Mike Jolley
42fef1a51a
Float handling logic for scientific notation
2017-11-06 20:04:03 +00:00
Mike Jolley
466b8c8163
More tests with more decimals
2017-11-06 20:04:03 +00:00
Mike Jolley
fe72fdfbd2
Add test to show error happening
2017-11-06 20:04:03 +00:00
Jeremy Pry
86aaa66ec0
Ensure hooks are added during unit tests
2017-11-06 14:58:07 -05:00
claudiulodro
939c115ddb
Out of base unit tests
2017-11-06 19:41:27 +00:00
claudiulodro
0e40f619af
Out of base cart tests (need tweaking)
2017-11-06 19:41:27 +00:00
Joel Rowley
ca2ca5a5ca
Add unit test to demonstrate type conversion precision bug
2017-11-03 22:20:41 -04:00
Mike Jolley
c17e76adc8
Merge pull request #17113 from woocommerce/add/travis-phpcs
...
Run PHPCS in Travis CI
2017-11-01 12:18:44 +00:00
claudiulodro
64a4a00198
Add e2e db
2017-10-31 13:50:39 -07:00
claudiulodro
d72b29d4b7
Couple tweaks to make test run well on latest WC
2017-10-31 13:36:01 -07:00
claudiulodro
88eb283713
Update e2e tests
2017-10-31 11:14:19 -07:00
Claudio Sanches
e1a4f6e159
Merge pull request #17470 from woocommerce/pr/16959
...
Added actions before calculations order totals and taxes and is_vat_excempt support
2017-10-31 12:21:08 -02:00
Mike Jolley
95cad5fae0
Added unit test
2017-10-31 13:51:06 +00:00
Mike Jolley
beecba5468
Update tests against formats
2017-10-31 12:36:54 +00:00
Mike Jolley
cb087a0755
fix tests and minify css
2017-10-31 12:26:59 +00:00
claudiulodro
f06ecee1c5
Fix order methods and add tests
2017-10-27 13:37:00 -07:00
Mike Jolley
f3d2b2f7f1
Merge pull request #17071 from woocommerce/add/formatting-unit-tests
...
Formatting functions tests
2017-10-27 15:14:14 +01:00
Claudio Sanches
2a4c16977c
Merge pull request #17331 from woocommerce/fix/17275-alt
...
Adjust item limiting discount code to work with multiple coupons
2017-10-25 20:19:13 -02:00
claudiulodro
e6a9a5f79b
Fix date query meta unset checking
2017-10-24 13:07:21 -07:00
Mike Jolley
8ca76e84cd
Add test for #17330
2017-10-24 17:53:51 +01:00
Rasmus Bengtsson
6d2d6c8211
Add unit tests to WC_Integrations class
2017-10-24 09:25:37 +02:00
Mike Jolley
18577b8e9b
Fix tests
2017-10-22 09:12:38 -07:00
Mike Jolley
1881b590d5
Test cases
2017-10-21 20:18:56 -07:00
Mike Jolley
5252d93465
Merge pull request #17154 from woocommerce/add/test-variation-totals
...
Update totals test to include a variation with parent tax class.
2017-10-12 15:34:59 +01:00
Gerhard Potgieter
8045596ed7
Add get_tax_class tests for WC_Product_Variation. Will ensure #17147 never happens again.
2017-10-12 14:46:28 +02:00
Gerhard Potgieter
9eee5afc2c
Be sure to add the new product for cleanup later
2017-10-12 13:33:56 +02:00
Gerhard Potgieter
91aa76a51b
Update totals test to include a variation with parent tax class.
2017-10-12 13:30:08 +02:00
Rodrigo Primo
d862aaf29d
Quote code in the tests README.md file
...
Use triple backticks to quote code in the tests README.md file. Without this change all the parameters of the script `tests/bin/install.sh` that are surrounded by `<>` are not displayed.
2017-10-10 15:07:24 -03:00
Claudio Sanches
b775074900
Fixed includes/wc-webhook-functions.php and removed debug
2017-10-10 12:59:04 -03:00
Claudio Sanches
2bd240ab15
Debug
2017-10-10 11:27:52 -03:00
Claudio Sanches
f479d916e5
Fixed syntax error on phpcs.sh
2017-10-10 09:34:47 -03:00
Claudio Sanches
01cafe62d8
Updated phpcs.sh
2017-10-09 22:16:25 -03:00
Claudio Sanches
ab04636ef0
Adds PHPCS in Travis CI
2017-10-09 17:31:15 -03:00
Mike Jolley
6d7522d864
Merge pull request #17075 from woocommerce/fix/phpunit-excluded-files
...
Updated tests exclusion list
2017-10-09 19:46:34 +01:00
claudiulodro
c604c0f824
Update chromedriver version and add singles tests
2017-10-06 13:10:50 -07:00
Claudio Sanches
9721a9aca0
Removed legacy tests
2017-10-06 10:39:20 -03:00
Mike Jolley
7d7907fc8e
Delete installing transient.
2017-10-05 18:11:25 +01:00
Mike Jolley
7cb7e3c864
Test should compare objects, not arrays
2017-10-05 17:37:18 +01:00
Claudio Sanches
cd554c1bdf
Restored tests/bin/phpunit.sh
2017-10-05 13:14:56 -03:00
Claudio Sanches
18a47d79b1
Merge branch 'master' into add/formatting-unit-tests
2017-10-05 12:18:29 -03:00
Claudio Sanches
c0197c639e
Formatting functions unit tests
2017-10-05 11:20:52 -03:00
Claudio Sanches
0c423c6ef7
Account function Unit Tests
2017-10-04 16:43:41 -03:00
Mike Jolley
d1211f4e63
Added a test to ensure meta data gets returned in the order API
2017-10-04 15:57:06 +01:00
claudiulodro
a02bb98db9
Product tests and fee test refactor
2017-09-28 14:54:44 -07:00
claudiulodro
0a46405d80
Order Item Coupon tests
2017-09-28 13:45:02 -07:00
claudiulodro
694f7fdfd8
Order Item Fee tests
2017-09-28 13:37:01 -07:00
claudiulodro
f9a92fdc71
Order_Item_Meta tests
2017-09-28 11:40:33 -07:00
Mike Jolley
1b8a955353
tweak travis script
2017-09-26 16:27:27 +01:00
Mike Jolley
bf82c769e7
scrutinizer
2017-09-26 15:21:05 +01:00
Mike Jolley
49b3e7da78
Gen coverage only on latest stable
2017-09-26 14:38:50 +01:00
Mike Jolley
212449f391
Only generate coverage on 7.x
2017-09-26 14:09:27 +01:00
Mike Jolley
be014346f1
Travis
2017-09-26 13:24:11 +01:00
adnanmultidots
c72413d925
Removed unused variable
2017-09-22 15:27:21 +05:30
Mike Jolley
5151415eec
Merge branch 'discounts-class-fixes-and-tests'
2017-09-20 18:44:18 +01:00
Mike Jolley
21dfde842a
Revised coupon sort order to not rely on IDs which can differ between cart and tests
...
Also edited test to match
2017-09-20 18:41:48 +01:00
Mike Jolley
29107d24a9
Remove filters from tests and correct sums
2017-09-20 18:37:26 +01:00
claudiulodro
9d8e308a78
Make importer columns case-insensitive
2017-09-17 10:18:03 -07:00
Claudiu Lodromanean
f9120672bd
Merge pull request #16767 from hjoelr/bugfix-coupon-cache
...
Bugfix: coupon object cache not being cleared upon deletion
2017-09-17 09:45:45 -07:00
Joel Rowley
b24eb0b46a
Added more tests
2017-09-15 21:04:21 -04:00
Joel Rowley
b8b67cf471
Made state cleanup more explicit in case there were filters that need run on cleanup.
2017-09-15 21:00:56 -04:00
Joel Rowley
f2a06c1ef0
Made discount unit tests more robust using PHPunit's Data Provider and tearDown()
2017-09-15 21:00:56 -04:00
Mike Jolley
f9719c79eb
Merge pull request #16795 from hjoelr/bugfix/freeshipping-coupon
...
Bugfix: Resolve 'non-numeric value encountered' error in PHP 7.1 when freeshipping coupon used
2017-09-14 11:31:17 -07:00
Joel Rowley
458a6c87c7
Resolve 'non-numeric value encountered' error in PHP 7.1 when freeshipping coupon used
2017-09-12 21:33:43 -04:00
mitraval192
2ee59801c2
added secure link
2017-09-11 17:24:55 +05:30
Joel Rowley
521bde2fba
Bugfix: coupon object cache not being cleared upon deletion
2017-09-09 22:47:25 -04:00
claudiulodro
ccade24ce5
Only set some fields on new orders
2017-09-07 13:50:47 -07:00
Mike Jolley
891d29dede
Calling init manually causes issues.
2017-09-07 11:50:12 +01:00
Claudio Sanches
f6375b64d7
Removed old test
2017-09-06 20:25:41 -03:00
Claudio Sanches
d0f9b1061e
Unit tests
2017-09-05 16:52:20 -03:00
Mike Jolley
1e9e6c461f
Unit test for #16653
2017-08-31 11:42:19 +01:00
Claudio Sanches
6dc58b4f6a
Allow select visibility in product shortcodes
...
Ref #15979
2017-08-29 18:29:29 -03:00
Mike Jolley
7e76b87039
Merge pull request #16596 from woocommerce/fix/16594
...
Manual coupons support
2017-08-29 13:46:13 +01:00
Mike Jolley
fe847630b2
Tests when tax is not enabled
2017-08-29 12:38:35 +01:00
Mike Jolley
fb64e77f24
No tax tests
2017-08-29 12:32:02 +01:00
Mike Jolley
dc9c14d574
Ex tax tests
2017-08-29 12:17:18 +01:00
Alister Scott
5b9c793864
Update tests/README with links to TravisCI, Scrutinizer and Code Climate
2017-08-29 16:27:02 +10:00
Claudio Sanches
acad44e3c9
Auto map legacy attributes to the new ones
2017-08-28 17:45:56 -03:00
Claudiu Lodromanean
c36a6811c5
Merge pull request #16600 from woocommerce/feature/15979
...
Introduces WC_Shortcode_Products class
2017-08-28 10:33:35 -07:00
Claudio Sanches
a97eb40c2c
Removed empty unit test
2017-08-25 20:29:35 -03:00
Claudio Sanches
32ea76f09f
Render product_attribute shortcode results with WC_Shortcode_Products
2017-08-25 19:07:10 -03:00
Claudio Sanches
ddeea547b1
Use WC_Shortcode_Products inside featured_products shortcode
2017-08-25 18:42:02 -03:00
Claudio Sanches
72df581c6f
Use WC_Shortcode_Products inside top_rated_products shortcode
2017-08-25 15:55:34 -03:00
Mike Jolley
97390eaf6e
Tests
2017-08-25 18:21:29 +01:00
Mike Jolley
be4ae42a59
Tests
2017-08-25 16:15:32 +01:00
Claudio Sanches
c0da59d75a
Use WC_Shortcode_Products inside best_selling_products shortcode
2017-08-25 11:46:47 -03:00
Claudio Sanches
366686c34a
Fixed unit tests for PHP 5.2 and 5.3
2017-08-25 11:01:25 -03:00