Line 3... |
Line 3... |
3 |
|
3 |
|
Line 4... |
Line 4... |
4 |
class NomsVernaculairesTest extends ConsultationEflorePhpUnit {
|
4 |
class NomsVernaculairesTest extends ConsultationEflorePhpUnit {
|
5 |
|
5 |
|
6 |
public function testRechercheEtendue() {
|
- |
|
7 |
Registre::set('parametres.referentiel', 'nvjfl');
|
6 |
public function testRechercheEtendue() {
|
8 |
$cheminRacine = realpath(dirname(__FILE__).'/../configurations/').'/';
|
7 |
Registre::set('parametres.referentiel', 'nvjfl');
|
9 |
Config::charger($cheminRacine.'config.ini');
|
8 |
Config::charger(CONFIG_DIR . '/config.ini');
|
10 |
$noms = new NomsVernaculaires();
|
9 |
$noms = new NomsVernaculaires();
|
11 |
$resultats = $noms->getRechercheEtendue('abricotier');
|
10 |
$resultats = $noms->getRechercheEtendue('abricotier');
|
12 |
$this->assertNotEmpty($resultats);
|
11 |
$this->assertNotEmpty($resultats);
|
Line 13... |
Line 12... |
13 |
$this->assertEquals('3', $resultats['entete']['total']);
|
12 |
$this->assertEquals('3', $resultats['entete']['total']);
|
14 |
}
|
13 |
}
|
15 |
|
- |
|
16 |
public function testRechercheEtendueDetermination() {
|
14 |
|
17 |
Registre::set('parametres.referentiel', 'nvjfl');
|
15 |
public function testRechercheEtendueDetermination() {
|
18 |
$cheminRacine = realpath(dirname(__FILE__).'/../configurations/').'/';
|
16 |
Registre::set('parametres.referentiel', 'nvjfl');
|
19 |
Config::charger($cheminRacine.'config.ini');
|
17 |
Config::charger(CONFIG_DIR . '/config.ini');
|
20 |
$noms = new NomsVernaculaires();
|
18 |
$noms = new NomsVernaculaires();
|
21 |
$resultats = $noms->getRechercheEtendue('abricotier', 'determination');
|
19 |
$resultats = $noms->getRechercheEtendue('abricotier', 'determination');
|
Line 22... |
Line 20... |
22 |
$this->assertNotEmpty($resultats);
|
20 |
$this->assertNotEmpty($resultats);
|
23 |
$this->assertEquals('3', $resultats['entete']['total']);
|
21 |
$this->assertEquals('3', $resultats['entete']['total']);
|
24 |
}
|
- |
|
25 |
|
22 |
}
|
26 |
public function testRechercheFloue() {
|
23 |
|
27 |
Registre::set('parametres.referentiel', 'nvjfl');
|
24 |
public function testRechercheFloue() {
|
28 |
$cheminRacine = realpath(dirname(__FILE__).'/../configurations/').'/';
|
25 |
Registre::set('parametres.referentiel', 'nvjfl');
|
29 |
Config::charger($cheminRacine.'config.ini');
|
26 |
Config::charger(CONFIG_DIR . '/config.ini');
|
30 |
$noms = new NomsVernaculaires();
|
27 |
$noms = new NomsVernaculaires();
|