Subversion Repositories eFlore/Applications.eflore-consultation

Rev

Rev 1142 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
229 delphine 1
<?php
2
require_once dirname(__FILE__).'/../../ConsultationEflorePhpUnit.php';
3
 
4
class FicheTest extends ConsultationEflorePhpUnit {
5
 
6
	public function testExecuterFichee() {
7
		$_GET['type_nom'] = 'nom_scientifique';
8
		$_GET['nom'] = 'acer mons';
9
 
10
		Registre::set('niveau', '1');
11
		$cheminRacine = realpath(dirname(__FILE__).'/../configurations/').'/';
12
		Config::charger($cheminRacine.'bdtfx.ini');
13
		Registre::set('eFlore.urlBase', new Url(Config::get('base_url_application_index')));
14
		Registre::set('parametres.referentiel', 'bdtfx');
15
 
16
		$fiche = new Fiche();
17
		$fiche->executerFiche();
18
		$sortie = $fiche->getSortie();
19
 
20
		$this->assertNotEmpty($sortie, print_r($sortie['corps'], true));
21
		$this->assertContains('<input id="eflore_niveau_nom" name="nom" type="hidden" value="acer mons" />', $sortie['corps']);
22
		$this->assertContains('<div id="zone_onglets" ', $sortie['corps']);
23
	}
24
}
25
?>