Subversion Repositories eFlore/Applications.eflore-consultation

Rev

Rev 229 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 229 Rev 1142
Line 1... Line 1...
1
<?php
1
<?php
2
require_once dirname(__FILE__).'/../../ConsultationEflorePhpUnit.php';
2
require_once dirname(__FILE__).'/../../ConsultationEflorePhpUnit.php';
Line 3... Line 3...
3
 
3
 
Line -... Line 4...
-
 
4
class FicheTest extends ConsultationEflorePhpUnit {
-
 
5
 
-
 
6
	/**
-
 
7
	 * @outputBuffering enabled	 # not working ?
4
class FicheTest extends ConsultationEflorePhpUnit {
8
	 * (AppControleur::initialiser, prérequis de new Fiche())
5
 
9
	 */
6
	public function testExecuterFichee() {
10
	public function testExecuterFichee() {
-
 
11
		$_GET['type_nom'] = 'nom_scientifique';
-
 
12
		$_GET['nom'] = 'acer mons';
Line 7... Line 13...
7
		$_GET['type_nom'] = 'nom_scientifique';
13
		$_GET['referentiel'] = 'bdtfx';
8
		$_GET['nom'] = 'acer mons';
-
 
9
 
14
		$_GET['num_nom'] = '182'; 
10
		Registre::set('niveau', '1');
15
 
11
		$cheminRacine = realpath(dirname(__FILE__).'/../configurations/').'/';
16
		Registre::set('niveau', '1');
Line -... Line 17...
-
 
17
		Config::charger(CONFIG_DIR . '/bdtfx.ini');
12
		Config::charger($cheminRacine.'bdtfx.ini');
18
		Registre::set('eFlore.urlBase', new Url(Config::get('base_url_application_index')));
13
		Registre::set('eFlore.urlBase', new Url(Config::get('base_url_application_index')));
19
		Registre::set('parametres.referentiel', 'bdtfx');
14
		Registre::set('parametres.referentiel', 'bdtfx');
20
 
Line 15... Line 21...
15
 
21
		// @AppControleur::initialiser(); ...