Rev 165 | Rev 1142 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
<?phprequire_once dirname(__FILE__).'/../ConsultationEflorePhpUnit.php';class NomsVernaculairesTest extends ConsultationEflorePhpUnit {public function testRechercheEtendue() {Registre::set('parametres.referentiel', 'nvjfl');$cheminRacine = realpath(dirname(__FILE__).'/../configurations/').'/';Config::charger($cheminRacine.'config.ini');$noms = new NomsVernaculaires();$resultats = $noms->getRechercheEtendue('abricotier');$this->assertNotEmpty($resultats);$this->assertEquals('3', $resultats['entete']['total']);}public function testRechercheEtendueDetermination() {Registre::set('parametres.referentiel', 'nvjfl');$cheminRacine = realpath(dirname(__FILE__).'/../configurations/').'/';Config::charger($cheminRacine.'config.ini');$noms = new NomsVernaculaires();$resultats = $noms->getRechercheEtendue('abricotier', 'determination');$this->assertNotEmpty($resultats);$this->assertEquals('3', $resultats['entete']['total']);}public function testRechercheFloue() {Registre::set('parametres.referentiel', 'nvjfl');$cheminRacine = realpath(dirname(__FILE__).'/../configurations/').'/';Config::charger($cheminRacine.'config.ini');$noms = new NomsVernaculaires();$resultats = $noms->getRechercheFloue('abricotier');$this->assertNotEmpty($resultats);$this->assertEquals('1', $resultats['entete']['total']);}}?>