Commit Graph

86 Commits

Author SHA1 Message Date
Barry Kooij f699f5102c Unit Tests: Fix Product\Functions tests 2015-03-06 16:59:19 +01:00
Barry Kooij 75e9f93891 Unit Test: Product_Simple fixes.
Related #7624
2015-03-06 16:55:11 +01:00
Barry Kooij d6b970a61d Namespace the Unit Tests 2015-03-06 16:32:40 +01:00
Nicola Mustone d20047430b more tests 2015-03-05 17:32:53 +01:00
Nicola Mustone eefdfac91d delete product if not empty 2015-03-05 17:32:45 +01:00
Nicola Mustone 1b941941a2 wrong tearDown 2015-03-04 18:25:29 +01:00
Nicola Mustone 36ece7a7f8 test WC_Product_Simple 2015-03-04 18:23:25 +01:00
Nicola Mustone 99c35e83eb added more product functions tests 2015-03-04 16:48:11 +01:00
Nicola Mustone 3615e75de1 helper methods to get and delete a dummy product 2015-03-04 09:33:05 +01:00
Nicola Mustone 72c2d37478 restore _manage_stock properly 2015-03-04 09:25:15 +01:00
Nicola Mustone c916037f10 test wc-product-functions.php 2015-03-04 09:00:33 +01:00
Nicola Mustone 42107fa37b fix option name 2015-03-03 12:47:13 +01:00
Nicola Mustone a18d2bd158 localize status in test_wc_get_order_status_name 2015-03-03 12:42:58 +01:00
Nicola Mustone e602082056 test order-functions 2015-03-03 12:38:05 +01:00
Nicola Mustone 9877d49207 test_wc_trim_string 2015-03-03 12:37:57 +01:00
Nicola Mustone f1f8759c41 test_wc_is_valid_url 2015-03-03 12:37:49 +01:00
Nicola Mustone 060bce3f00 delete created product 2015-03-02 17:11:42 +01:00
Nicola Mustone 6ac167ac36 wc-cart-functions - unit tests begin 2015-03-02 17:06:03 +01:00
Mike Jolley 3623d82881 Fix compound tax unit test #7525 2015-02-23 11:03:06 +00:00
Paul Kilmurray cb12623fa7 Compound tax calculation test
There is either an error in the calculation for compound taxes, or
there is something wrong with my understanding of how compound taxes
should work - I’m definitely not discounting the later.

Given a price of $9.99 exclusive of tax, applying a 10% tax will give
9.99 + 0.999 = 10.989. Then applying a compound tax of 2% should give
10.989 + 0.2198 = 11.2088.

The result of the WC_Tax::calc_tax on the 2% compound tax is 0.1998
which seems to be in error.

Likewise for prices exclusive of tax.

Note: rounding to 4 decimal places on all calculations
2015-02-23 14:40:10 +08:00
shivapoudel 23a94dea1d Tweaks roles typo 2015-02-03 22:07:58 +05:45
Jeroen Sormani cd1e706327 Merge remote-tracking branch 'upstream/master' 2015-01-11 10:30:03 +00:00
Claudio Sanches c4812461da [Tests] Fixed the WC_Tests_Tax::test_get_shipping_tax_rates() 2015-01-05 14:59:16 -02:00
Claudio Sanches b3cf6435b9 Merge pull request #6927 from purcebr/master
Unit Tests for WC_Customer class
2015-01-05 14:50:54 -02:00
Mike Jolley 6dced09940 Fix test_get_rates unit test 2015-01-05 16:40:31 +00:00
Mike Jolley 7d5e13cea6 Update wc_get_base_location() unit test 2015-01-05 10:26:35 +00:00
JeroenSormani d523bd4c82 Replace many asserts with @dataProvider 2014-12-21 21:57:30 +01:00
Claudio Sanches 82e15ab231 [Tests] Updated the test for wc_get_core_supported_themes() 2014-12-12 10:29:22 -02:00
Bryan Purcell 54d50d8307 Clearing out the cart, and the mock product 2014-12-11 00:00:49 -06:00
Bryan Purcell bc9821253f Refactoring and fixing bugs in WC_Customer Unit Tests 2014-12-10 23:54:06 -06:00
Bryan Purcell 0213fcce85 Refactoring, resetting settings after test.
Testing multiple combinations of store default shipping methods, moving
helper methods to a unit test Helper Class.
2014-12-10 17:02:43 -06:00
Bryan Purcell 37fc5c2bda Merge branch 'master' of github.com:woothemes/woocommerce 2014-12-10 17:00:28 -06:00
Claudio Sanches 130ddb2b56 [Tests] Fixed the tests for wc_timezone_string() 2014-12-10 16:09:01 -02:00
Claudio Sanches 51c5c65c9a [Tests] removed deprecated tax method 2014-12-10 15:47:35 -02:00
Bryan Purcell 18fe337fac Refactoring the WC_Customer Unit Tests 2014-12-09 19:50:31 -06:00
Bryan Purcell 4af6f1765d Unit Tests for business logic in the WC_Customer class 2014-12-09 16:11:31 -06:00
Claudio Sanches 6841ca81c9 Fixed the coupons tests and improved the tax tests 2014-12-04 11:44:55 -02:00
Mike Jolley dbcc8430e9 Installer tweaks + unit tests closes #6356 2014-11-25 17:09:24 +00:00
Mike Jolley fe6d52b705 Final tax class unit tests
Closes #6357
2014-11-24 14:57:11 +00:00
Mike Jolley a7d4b89c0d test__delete_tax_rate #6357 2014-11-24 14:57:11 +00:00
Mike Jolley 39d8ec7db5 My first Unit tests
Part of #6357
2014-11-24 13:52:13 +00:00
claudiosmweb 8eec2f27ad Created some conditional functions tests 2014-11-18 14:22:14 -02:00
claudiosmweb da43955416 Introduces the wc_get_default_location() function 2014-11-18 12:56:13 -02:00
Barry Kooij 5fcc2554cb Unit Tests: Made coupon tests non depend on each other. Added correct cleaning of coupons. 2014-11-11 14:29:40 +01:00
Barry Kooij 3d7108278d Unit Tests: wrote cart test_get_coupons method. 2014-11-11 14:28:52 +01:00
Marin Atanasov 8892b1aeb0 fixing a typo in comments in WC_Cart and its tests 2014-11-09 17:42:49 +02:00
claudiosmweb 956f003175 Unit Tests: Created initial shipping tests and added shipping value for coupon tests 2014-10-30 17:58:19 -02:00
claudiosmweb 8faf3ec85a Unit Tests: Created test_fixed_product_discount and test_percent_product_discount methods 2014-10-30 16:22:14 -02:00
claudiosmweb 720ef008d7 Unit Tests: Created WC_Helper_Fee class and WC_Tests_Cart::test_cart_fee method 2014-10-30 16:08:33 -02:00
claudiosmweb 9dd82ad5a6 Unit Tests: Created test_percent_cart_discount method 2014-10-30 15:13:42 -02:00