Subversion Repositories eFlore/Applications.eflore-consultation

Rev

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

Rev Author Line No. Line
99 delphine 1
<?php
2
require_once dirname(__FILE__).'/../ConsultationEflorePhpUnit.php';
3
 
4
class NomsTest extends ConsultationEflorePhpUnit {
5
 
6
	public function testRechercheEtendue() {
7
		Registre::set('parametres.referentiel', 'bdtfx');
8
		$cheminRacine = realpath(dirname(__FILE__).'/../configurations/').'/';
9
		Config::charger($cheminRacine.'config.ini');
10
		$noms = new Noms();
11
		$resultats = $noms->getRechercheEtendue('aceras');
12
		$this->assertNotEmpty($resultats);
13
		$this->assertEquals('15', $resultats['entete']['total']);
14
	}
15
 
16
	public function testRechercheFloue() {
17
		Registre::set('parametres.referentiel', 'bdtfx');
18
		$cheminRacine = realpath(dirname(__FILE__).'/../configurations/').'/';
19
		Config::charger($cheminRacine.'config.ini');
20
		$noms = new Noms();
21
		$resultats = $noms->getRechercheFloue('aceras');
22
		$this->assertNotEmpty($resultats);
23
		$this->assertEquals('27', $resultats['entete']['total']);
24
	}
25
}
26
?>