diff --git a/unit_test/test_appData.php b/unit_test/test_appData.php index 3176678..eefe3f5 100644 --- a/unit_test/test_appData.php +++ b/unit_test/test_appData.php @@ -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, ""); if($iExpected != $iReceived) { echo "Got $iReceived rows instead of $iExpected.\n"; + $oDownloadUrl->delete(); + $oUser->delete(); return FALSE; }