Fix unit test for import, the way the test is set up it expects a no for backorders and not an empty string

This commit is contained in:
Gerhard Potgieter 2018-03-28 08:28:13 +02:00
parent e876f0dfb2
commit 80ec10fc21
1 changed files with 5 additions and 5 deletions

View File

@ -306,7 +306,7 @@ class WC_Tests_Product_CSV_Importer extends WC_Unit_Test_Case {
'tax_class' => 'standard',
'stock_status' => 'instock',
'stock_quantity' => '',
'backorders' => '',
'backorders' => 'no',
'sold_individually' => '',
'weight' => '',
'length' => '',
@ -358,7 +358,7 @@ class WC_Tests_Product_CSV_Importer extends WC_Unit_Test_Case {
'tax_class' => 'standard',
'stock_status' => 'instock',
'stock_quantity' => '',
'backorders' => '',
'backorders' => 'no',
'sold_individually' => '',
'weight' => '',
'length' => '',
@ -394,7 +394,7 @@ class WC_Tests_Product_CSV_Importer extends WC_Unit_Test_Case {
'tax_class' => '',
'stock_status' => 'outofstock',
'stock_quantity' => '',
'backorders' => '',
'backorders' => 'no',
'sold_individually' => '',
'weight' => '',
'length' => '',
@ -446,7 +446,7 @@ class WC_Tests_Product_CSV_Importer extends WC_Unit_Test_Case {
'tax_class' => 'standard',
'stock_status' => 'instock',
'stock_quantity' => 6,
'backorders' => '',
'backorders' => 'no',
'sold_individually' => '',
'weight' => 1.0,
'length' => 2.0,
@ -536,7 +536,7 @@ class WC_Tests_Product_CSV_Importer extends WC_Unit_Test_Case {
'tax_class' => '',
'stock_status' => 'instock',
'stock_quantity' => '',
'backorders' => '',
'backorders' => 'no',
'sold_individually' => '',
'weight' => '',
'length' => '',