Subversion Repositories eFlore/Applications.eflore-consultation

Compare Revisions

Ignore whitespace Rev 229 → Rev 1142

/trunk/tests/modules/fiche/FicheTest.php
3,16 → 3,22
 
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');
$cheminRacine = realpath(dirname(__FILE__).'/../configurations/').'/';
Config::charger($cheminRacine.'bdtfx.ini');
Config::charger(CONFIG_DIR . '/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();