From 80ec10fc21e0ff18a199a51178d0cdf8d8c3dae0 Mon Sep 17 00:00:00 2001 From: Gerhard Potgieter Date: Wed, 28 Mar 2018 08:28:13 +0200 Subject: [PATCH] Fix unit test for import, the way the test is set up it expects a no for backorders and not an empty string --- tests/unit-tests/importer/product.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/unit-tests/importer/product.php b/tests/unit-tests/importer/product.php index 28f4fe9d5ac..01633f00408 100644 --- a/tests/unit-tests/importer/product.php +++ b/tests/unit-tests/importer/product.php @@ -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' => '',