woocommerce/tests/unit-tests
Rodrigo Primo 920006b8b9 Test setup methods should call parent setup method
This commits adds a call to `parent::setUp()` inside WC_Tests_Product_CSV_Importer::setUp(). This is necessary to make sure transactions are used on database calls and thus tests don't have to worry about cleaning inserted data.

I found this issue while debugging https://github.com/woocommerce/woocommerce-product-tables-feature-plugin/issues/81. Turns out this test was failing because WC_Tests_Product_CSV_Importer::test_import() was leaving one post in the database due to a bug in the custom product tables plugin.
2018-04-23 10:40:16 -03:00
..
account Rename class WC_Payment_Token_eCheck to WC_Payment_Token_ECheck 2018-03-07 14:50:21 -03:00
admin/reports Make unit tests work again with PHP 5.2 2018-03-12 16:19:47 -03:00
api Merge branch 'master' into feature/product-custom-tables-supporting-changes 2018-03-29 12:05:55 -03:00
attributes test 2017-12-08 11:35:26 +00:00
cart Unit test for oob rounding issue 2018-03-13 11:41:25 -07:00
core Increase precision from 4 to 6 2018-01-30 15:00:53 +00:00
countries Increase country unit test coverage 2017-06-07 14:31:32 -07:00
coupon Add a test 2018-02-22 15:06:53 -05:00
crud Added test 2018-03-01 12:12:26 +00:00
customer Merge branch 'master' into update/improve-get-downloads 2018-02-28 13:34:11 -03:00
discounts Fixed WC_Tests_Discounts::test_calculations 2017-11-16 17:08:45 -02:00
exporter Change Position key from 'position' to 'menu_order' 2017-08-22 16:46:09 -03:00
formatting Tests 2018-01-12 14:20:39 +00:00
gateways/paypal Fixed shipping tax logic to behave the same as originally 2018-03-28 13:08:05 +02:00
geolocation GeoLite integration Unit Tests 2018-03-15 17:06:13 -03:00
importer Test setup methods should call parent setup method 2018-04-23 10:40:16 -03:00
integrations Add unit tests to WC_Integrations class 2017-10-24 09:25:37 +02:00
libraries Applied new WC_Background_Process class 2018-02-01 11:42:34 -02:00
log Changed version 2.7 to 3.0 2017-03-15 13:36:53 -03:00
order Merge branch 'master' into update/17252 2018-03-01 15:58:17 +00:00
order-items Fix php <=5.6 errors 2017-12-19 11:37:37 -08:00
payment-tokens Rename class WC_Payment_Token_eCheck to WC_Payment_Token_ECheck 2018-03-07 14:50:21 -03:00
product Simple placeholders should not be quoted 2018-04-20 09:28:08 -03:00
settings Fixed typos. 2017-07-10 12:56:28 +07:00
setup Add test verifying that the correct list of payment gateways is returned per country 2017-12-13 09:35:43 -05:00
shipping-zones Changed version 2.7 to 3.0 2017-03-15 13:36:53 -03:00
shortcodes Fix test and default 2018-03-19 13:05:43 +00:00
tax Increase precision from 4 to 6 2018-01-30 15:00:53 +00:00
totals Be sure to add the new product for cleanup later 2017-10-12 13:33:56 +02:00
util Add unit tests group 'core-only' 2018-04-02 15:15:23 -03:00
webhooks Webhook CRUD Unit tests 2017-08-17 18:36:53 -03:00
widgets Add more core-functions unit tests (#18190) 2017-12-18 11:58:40 -02:00