From 3c6340e581faf61acbd409e2d35b60c0d0c72468 Mon Sep 17 00:00:00 2001 From: Chris Morgan Date: Sat, 8 Sep 2007 22:25:52 +0000 Subject: [PATCH] Set a specific name for the vendor object created during the unit tests --- unit_test/test_om_objects.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/unit_test/test_om_objects.php b/unit_test/test_om_objects.php index 798e412..e4d7e9b 100644 --- a/unit_test/test_om_objects.php +++ b/unit_test/test_om_objects.php @@ -92,7 +92,7 @@ function test_class($sClassName, $aTestMethods) if(!$oTestObject->delete()) { - error("sClassName of $sClassName oTestObject->delete() failed!"); + error("sClassName of '".$sClassName."' oTestObject->delete() failed!"); $oUser->delete(); return false; } @@ -221,6 +221,9 @@ function create_object($sClassName, $oUser) $oTestObject->oVersion->iAppId = $oApp->iAppId; $oTestObject->oVersion->sName = "OM Version"; break; + case "vendor": + $oTestObject->sName = "OM vendor"; + break; } /* We cannot use screenshot::create() because it requires an image */