Rev 229 | Blame | Compare with Previous | Last modification | View Log | RSS feed
<?php
require_once dirname(__FILE__).'/../../ConsultationEflorePhpUnit.php';
class FicheTest extends ConsultationEflorePhpUnit {
public function testExecuterFichee() {
$_GET['type_nom'] = 'nom_scientifique';
$_GET['nom'] = 'acer mons';
Registre::set('niveau', '1');
$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');
$fiche = new Fiche();
$fiche->executerFiche();
$sortie = $fiche->getSortie();
$this->assertNotEmpty($sortie, print_r($sortie['corps'], true));
$this->assertContains('<input id="eflore_niveau_nom" name="nom" type="hidden" value="acer mons" />', $sortie['corps']);
$this->assertContains('<div id="zone_onglets" ', $sortie['corps']);
}
}
?>