New file |
0,0 → 1,26 |
<?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']); |
} |
} |
?> |