/** * test importdatabase for different databases mysql, postgresql, oracle, etc * For oracle, the schema will be changed based on setting in dbschema.ini.append.php * @return unknown_type */ public function testImportDatabase() { $surveyWizard = eZSurveyWizard::instance(); $surveyWizard->importDatabase(); $this->assertTrue($surveyWizard->databaseStatus()); }
// The "eZ publish professional licence" version 2 is available at // http://ez.no/ez_publish/licences/professional/ and in the file // PROFESSIONAL_LICENCE included in the packaging of this file. // For pricing of this licence please contact us via e-mail to licence@ez.no. // Further contact information is available at http://ez.no/company/contact/. // // The "GNU General Public License" (GPL) is available at // http://www.gnu.org/copyleft/gpl.html. // // Contact licence@ez.no if any conditions of this licencing isn't clear to // you. // /*! \file wizard.php */ $http = eZHTTPTool::instance(); $surveyWizard = eZSurveyWizard::instance(); $databaseStatus = $surveyWizard->databaseStatus(); $Module = $Params['Module']; if ($http->hasPostVariable('ImportDatabase')) { $surveyWizard->importDatabase(); } if ($http->hasPostVariable('ImportSurveyPackage')) { $surveyWizard->importPackage(); } if ($http->hasPostVariable('ImportSurveyManual')) { // redirect to the media folder. $uri = 'class/grouplist'; $Module->redirectTo($uri); } if ($http->hasPostVariable('AddNewSurveyRelatedNode')) { $contentINI = eZINI::instance('content.ini');