Set a specific name for the vendor object created during the unit tests

This commit is contained in:
Chris Morgan
2007-09-08 22:25:52 +00:00
committed by WineHQ
parent bf36c8a001
commit 3c6340e581

View File

@@ -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 */