appdb/unit_test test_appData.php
WineHQ
wineowner at wine.codeweavers.com
Mon Jun 18 19:27:13 CDT 2007
ChangeSet ID: 31221
CVSROOT: /opt/cvs-commit
Module name: appdb
Changes by: wineowner at winehq.org 2007/06/18 19:27:13
Modified files:
unit_test : test_appData.php
Log message:
Alexander Nicolaysen Sørnes <alex at thehandofagony.com>
Cleanup appData test
Patch: http://cvs.winehq.org/patch.py?id=31221
Old revision New revision Changes Path
1.2 1.3 +5 -0 appdb/unit_test/test_appData.php
Index: appdb/unit_test/test_appData.php
diff -u -p appdb/unit_test/test_appData.php:1.2 appdb/unit_test/test_appData.php:1.3
--- appdb/unit_test/test_appData.php:1.2 19 Jun 2007 0:27:13 -0000
+++ appdb/unit_test/test_appData.php 19 Jun 2007 0:27:13 -0000
@@ -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;
}
More information about the wine-cvs
mailing list