3,22 → 3,16 |
|
class FicheTest extends ConsultationEflorePhpUnit { |
|
/** |
* @outputBuffering enabled # not working ? |
* (AppControleur::initialiser, prérequis de new Fiche()) |
*/ |
public function testExecuterFichee() { |
$_GET['type_nom'] = 'nom_scientifique'; |
$_GET['nom'] = 'acer mons'; |
$_GET['referentiel'] = 'bdtfx'; |
$_GET['num_nom'] = '182'; |
|
Registre::set('niveau', '1'); |
Config::charger(CONFIG_DIR . '/bdtfx.ini'); |
$cheminRacine = realpath(dirname(__FILE__).'/../configurations/').'/'; |
Config::charger($cheminRacine.'bdtfx.ini'); |
Registre::set('eFlore.urlBase', new Url(Config::get('base_url_application_index'))); |
Registre::set('parametres.referentiel', 'bdtfx'); |
|
// @AppControleur::initialiser(); ... |
$fiche = new Fiche(); |
$fiche->executerFiche(); |
$sortie = $fiche->getSortie(); |