appdb/unit_test test_user.php

WineHQ wineowner at wine.codeweavers.com
Mon Jul 17 15:41:19 CDT 2006


ChangeSet ID:	26601
CVSROOT:	/opt/cvs-commit
Module name:	appdb
Changes by:	wineowner at winehq.org	2006/07/17 15:41:19

Modified files:
	unit_test      : test_user.php 

Log message:
	Chris Morgan <cmorgan at alum.wpi.edu>
	Remove the application created to perform the unit test so we don't 'leak' dummy applications

Patch: http://cvs.winehq.org/patch.py?id=26601

Old revision  New revision  Changes     Path
 1.5           1.6           +4 -0       appdb/unit_test/test_user.php

Index: appdb/unit_test/test_user.php
diff -u -p appdb/unit_test/test_user.php:1.5 appdb/unit_test/test_user.php:1.6
--- appdb/unit_test/test_user.php:1.5	17 Jul 2006 20:41:19 -0000
+++ appdb/unit_test/test_user.php	17 Jul 2006 20:41:19 -0000
@@ -463,6 +463,10 @@ function test_user_getAppsMaintained()
     /* remove maintainership for this user */
     $oUser->deleteMaintainer($iAppId);
 
+    /* remove this application */
+    $oApp = new Application($iAppId);
+    $oApp->delete();
+
     return true;
 }
 



More information about the wine-cvs mailing list