From 72dad5dd0723e343ccdd9cd0263fa0e474c29d8d Mon Sep 17 00:00:00 2001 From: Eric Espie Date: Thu, 16 Feb 2023 16:14:37 +0100 Subject: [PATCH] =?UTF-8?q?N=C2=B05891=20-=20Make=20CSV=20import=20unit=20?= =?UTF-8?q?tests=20work?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../core/{AttributeDefTest.inc.php => AttributeDefTest.php} | 0 .../core/{BulkChangeTest.inc.php => BulkChangeTest.php} | 4 ++-- 2 files changed, 2 insertions(+), 2 deletions(-) rename tests/php-unit-tests/unitary-tests/core/{AttributeDefTest.inc.php => AttributeDefTest.php} (100%) rename tests/php-unit-tests/unitary-tests/core/{BulkChangeTest.inc.php => BulkChangeTest.php} (99%) diff --git a/tests/php-unit-tests/unitary-tests/core/AttributeDefTest.inc.php b/tests/php-unit-tests/unitary-tests/core/AttributeDefTest.php similarity index 100% rename from tests/php-unit-tests/unitary-tests/core/AttributeDefTest.inc.php rename to tests/php-unit-tests/unitary-tests/core/AttributeDefTest.php diff --git a/tests/php-unit-tests/unitary-tests/core/BulkChangeTest.inc.php b/tests/php-unit-tests/unitary-tests/core/BulkChangeTest.php similarity index 99% rename from tests/php-unit-tests/unitary-tests/core/BulkChangeTest.inc.php rename to tests/php-unit-tests/unitary-tests/core/BulkChangeTest.php index f0c15e793..89d681118 100644 --- a/tests/php-unit-tests/unitary-tests/core/BulkChangeTest.inc.php +++ b/tests/php-unit-tests/unitary-tests/core/BulkChangeTest.php @@ -145,7 +145,7 @@ class BulkChangeTest extends ItopDataTestCase { ["name" => 1, "id" => 2, "status" => 3, "purchase_date" => 4], ["org_id" => ["name" => 0]], ["id"], - [ "org_id" => "invalid value for attribute", 1 => "Server1", 2 => "1", 3 => "production", 4 => "", "id" => 1, "__STATUS__" => "Issue: Unexpected attribute value(s)"], + [ "org_id" => "Invalid value for attribute", 1 => "Server1", 2 => "1", 3 => "production", 4 => "", "id" => 1, "__STATUS__" => "Issue: Unexpected attribute value(s)"], ], "Case 6 : Unexpected value" => [ [["Demo", "Server1", "1", "", ""]], @@ -351,7 +351,7 @@ class BulkChangeTest extends ItopDataTestCase { ["name" => 1, "id" => 2, "status" => 3, "purchase_date" => 4], ["org_id" => ["name" => 0]], ["id"], - [ 0 => "", "org_id" => "invalid value for attribute", 1 => "ServerTest", 2 => "1", 3 => "production", 4 => "", "id" => 1, "__STATUS__" => "Issue: Unexpected attribute value(s)", + [ 0 => "", "org_id" => "Invalid value for attribute", 1 => "ServerTest", 2 => "1", 3 => "production", 4 => "", "id" => 1, "__STATUS__" => "Issue: Unexpected attribute value(s)", "__ERRORS__" => "Null not allowed", ], ],