From: Alan H. <min...@us...> - 2005-05-11 15:52:33
|
Update of /cvsroot/gallery/gallery2/lib/tools/phpunit In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15502/lib/tools/phpunit Modified Files: GalleryTestCase.class Log Message: init _cleanup['toolkitId'] to avoid warnings from tests that don't use it Index: GalleryTestCase.class =================================================================== RCS file: /cvsroot/gallery/gallery2/lib/tools/phpunit/GalleryTestCase.class,v retrieving revision 1.39 retrieving revision 1.40 diff -u -d -r1.39 -r1.40 --- GalleryTestCase.class 11 May 2005 06:51:20 -0000 1.39 +++ GalleryTestCase.class 11 May 2005 15:52:23 -0000 1.40 @@ -131,6 +131,7 @@ $this->TestCase($methodName); $this->_cleanup = array('entity' => array(), 'factoryModuleId' => array(), + 'toolkitId' => array(), 'pluginParameters' => array()); } @@ -256,7 +257,7 @@ $gallery->_shutdownActions = null; /* - * Resolve any shutdown actions the test or the code being tested registered so that + * Resolve any shutdown actions the test or the code being tested registered so that * any cleanup happens before we start verifying locks, entities, etc. */ $gallery->performShutdownActions(); @@ -292,7 +293,7 @@ } } } - + /* Restore each key from the saved list */ foreach ($pluginParams as $key => $pluginParam) { $ret = GalleryCoreApi::setPluginParameter($pluginType, $pluginId, |