Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-16290

eZDFSFileHandlerTest incorrectly restore settings which causes other tests to fail

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • 4.3.0beta2
    • 4.3.0beta1
    • Misc
    • 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

      Attachments

        Activity

          People

            patrick.allaert patrick.allaert
            patrick.allaert patrick.allaert
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: