Cleanup appData test
This commit is contained in:
committed by
WineHQ
parent
051a1e5d0c
commit
2c32bc608b
@@ -27,12 +27,17 @@ function test_appData_listSubmittedBy()
|
|||||||
|
|
||||||
$shReturn = appData::listSubmittedBy($oUser->iUserId, true);
|
$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 */
|
/* There should be two lines; one header and one for the downloadurl */
|
||||||
$iExpected = 2;
|
$iExpected = 2;
|
||||||
$iReceived = substr_count($shReturn, "</tr>");
|
$iReceived = substr_count($shReturn, "</tr>");
|
||||||
if($iExpected != $iReceived)
|
if($iExpected != $iReceived)
|
||||||
{
|
{
|
||||||
echo "Got $iReceived rows instead of $iExpected.\n";
|
echo "Got $iReceived rows instead of $iExpected.\n";
|
||||||
|
$oDownloadUrl->delete();
|
||||||
|
$oUser->delete();
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user