Gerhard Potgieter
dbafe34ed2
Fix test to test the actual file upload and not just the import
2018-05-24 09:18:26 +02:00
Gerhard Potgieter
16385a957c
Add unit test for testing products in ABSPATH on server.
2018-05-24 08:56:57 +02:00
Rodrigo Primo
4a8f34f2ee
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:34:03 -03:00
Rodrigo Primo
c7c82a2335
PHPCS fixes
2018-04-23 10:33:52 -03:00
Gerhard Potgieter
80ec10fc21
Fix unit test for import, the way the test is set up it expects a no for backorders and not an empty string
2018-03-28 08:28:13 +02:00
Claudio Sanches
c140331dc3
[Unit Tests] Clean products after tested is complete
2017-11-16 16:56:30 -02:00
claudiulodro
9d8e308a78
Make importer columns case-insensitive
2017-09-17 10:18:03 -07:00
Claudio Sanches
7ad0dd55f9
Allow import 'menu_order'
2017-08-22 17:22:39 -03:00
Claudio Sanches
b8b9ae41f0
Fixed importer unit tests
2017-08-11 21:46:51 -03:00
claudiulodro
03403b2c44
Allow times in date fields
2017-07-10 09:19:59 -07:00
claudiulodro
863193bd34
Fix linting problems
2017-07-06 11:12:02 -07:00
claudiulodro
1d3c4ebb4d
Add flag for timeout checking
2017-06-14 11:35:22 -07:00
Claudio Sanches
51ddc36080
Skip empty attributes and reset indexes
2017-05-30 19:26:31 -03:00
Claudio Sanches
611695b9f4
Updated and fixed importer unit tests
2017-05-30 17:58:34 -03:00
Mike Jolley
67dde58d83
Tests
2017-05-26 16:00:32 +01:00
Mike Jolley
ba305eacb5
Fix tests
2017-05-25 18:16:10 +01:00
Claudio Sanches
3fbaa8607a
Fixed unit tests for WC_Product_CSV_Importer
2017-05-24 03:44:27 -03:00
Claudio Sanches
f294447543
Fixed unit tests
2017-05-19 19:18:09 -03:00
Claudio Sanches
8f1eb262e3
Updated importer tests
2017-05-16 01:42:55 -03:00
Claudio Sanches
c375fa03ff
Disable importer tests for now
2017-05-15 20:43:53 -03:00
Claudio Sanches
09cf382d29
Initial code to create/update in the CSV importer
2017-05-15 20:23:44 -03:00
Claudio Sanches
121f8f6315
Abstract the product importer
2017-05-15 19:49:53 -03:00
claudiulodro
824d8898a2
Fix unit tests
2017-05-12 08:44:02 -07:00
claudiulodro
b907aa74f6
Finish parser and unit test
2017-05-04 14:20:59 -07:00