Cleanup appData test

This commit is contained in:
Alexander Nicolaysen Sørnes
2007-06-19 00:27:13 +00:00
committed by WineHQ
parent 051a1e5d0c
commit 2c32bc608b

View File

@@ -27,12 +27,17 @@ function test_appData_listSubmittedBy()
$shReturn = appData::listSubmittedBy($oUser->iUserId, true);
/* This is needed for deleting the entry */
$oUser->addPriv("admin");
/* There should be two lines; one header and one for the downloadurl */
$iExpected = 2;
$iReceived = substr_count($shReturn, "</tr>");
if($iExpected != $iReceived)
{
echo "Got $iReceived rows instead of $iExpected.\n";
$oDownloadUrl->delete();
$oUser->delete();
return FALSE;
}