Subversion Repositories eFlore/Applications.eflore-consultation

Rev

Rev 165 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

<?php
require_once dirname(__FILE__).'/../ConsultationEflorePhpUnit.php';

class NomsTest extends ConsultationEflorePhpUnit {
        
        public function testRechercheEtendue() {
                Registre::set('parametres.referentiel', 'bdtfx');
                $cheminRacine = realpath(dirname(__FILE__).'/../configurations/').'/';
                Config::charger($cheminRacine.'config.ini');
                $noms = new Noms();
                $resultats = $noms->getRechercheEtendue('aceras');
                $this->assertNotEmpty($resultats);
                $this->assertEquals('15', $resultats['entete']['total']);
        }
        
        public function testRechercheFloue() {
                Registre::set('parametres.referentiel', 'bdtfx');
                $cheminRacine = realpath(dirname(__FILE__).'/../configurations/').'/';
                Config::charger($cheminRacine.'config.ini');
                $noms = new Noms();
                $resultats = $noms->getRechercheFloue('aceras');
                $this->assertNotEmpty($resultats);
                $this->assertEquals('27', $resultats['entete']['total']);
        }
}
?>