Details
-
Bug
-
Resolution: Fixed
-
Medium
-
4.3.0beta1
-
None
Description
In setUp() of eZDFSFileHandlerTest:
FileHandler setting in ClusteringSettings section from file.ini is backed up in $this->previousFileHandler variable, this variable is used for restore in tearDown().
However, if running the test on a non-MySQL DB, the test is skipped and the teardown() function will run:
$fileINI = eZINI::instance( 'file.ini' );
$fileINI->setVariable( 'ClusteringSettings', 'FileHandler', $this->previousFileHandler );
With $this->previousFileHandler being null. This will destroy the configuration setting and will prevent other tests to succeed.
Error encountered:
Call to a member function processFile() on a non-object in /home/patrick.allaert/Projets/EZP/trunk/lib/ezutils/classes/ezexpiryhandler.php on line 58.
In the error log we can find:
[ Mar 01 2010 15:26:34 ] [] eZExtension::getHandlerClass:
Unable to find variable FileHandler in section ClusteringSettings in file file.ini