/** * Test setup * * Load an instance of file.ini */ public function setUp() { parent::setUp(); // We need to clear the existing handler if it was loaded before the INI // settings changes eZClusterFileHandler::resetHandler(); // Load database parameters for cluster // The same DSN than the relational database is used ezpINIHelper::setINISetting('file.ini', 'ClusteringSettings', 'FileHandler', $this->clusterClass); }
/** * Test setup * * Load an instance of file.ini **/ public function setUp() { $this->markTestSkipped("Tests skipped until eZFS2 becomes more stable"); parent::setUp(); // We need to clear the existing handler if it was loaded before the INI // settings changes if (isset($GLOBALS['eZClusterFileHandler_chosen_handler']) and !$GLOBALS['eZClusterFileHandler_chosen_handler'] instanceof $this->clusterClass) { unset($GLOBALS['eZClusterFileHandler_chosen_handler']); } // Load database parameters for cluster // The same DSN than the relational database is used ezpINIHelper::setINISetting('file.ini', 'ClusteringSettings', 'FileHandler', $this->clusterClass); }
/** * Test setup * * Load an instance of file.ini **/ public function setUp() { parent::setUp(); // We need to clear the existing handler if it was loaded before the INI // settings changes if (isset($GLOBALS['eZClusterFileHandler_chosen_handler']) and !$GLOBALS['eZClusterFileHandler_chosen_handler'] instanceof eZFSFileHandler) { unset($GLOBALS['eZClusterFileHandler_chosen_handler']); } // Load database parameters for cluster // The same DSN than the relational database is used $fileINI = eZINI::instance('file.ini'); $this->previousFileHandler = $fileINI->variable('ClusteringSettings', 'FileHandler'); $fileINI->setVariable('ClusteringSettings', 'FileHandler', 'eZFSFileHandler'); }