Subversion Repositories eFlore/Projets.eflore-projets

Compare Revisions

Ignore whitespace Rev 205 → Rev 206

/trunk/services/tests/0.2/bdtfx/NomDetailsBdftxTest.php
3,8 → 3,8
 
class NomDetailsBdtfxTest extends ServicePhpUnit {
 
private $nomDetailSqueletteUrl = 'http://localhost/service:eflore:0.1/bdtfx/noms/%s';
private $ontologieHrefTpl = 'http://localhost/service:eflore:0.1/bdnt/ontologies/rangTaxo:%s';
private $nomDetailSqueletteUrl = 'http://localhost/service:eflore:0.2/bdtfx/noms/%s';
private $ontologieHrefTpl = 'http://localhost/service:eflore:0.2/bdnt/ontologies/rangTaxo:%s';
private $champsProjet = array(
'presence_Ga' => 'presence_Ga.code',
'presence_Co' => 'presence_Co.code'
13,7 → 13,7
public function __construct() {
$this->projet = 'bdtfx';
$this->service = 'noms';
$this->classeTestee = 'NomDetailsBdtfx';
$this->classeTestee = 'NomDetailsGenerique';
}
 
public function initialiserService(NomsListe $service) {
26,7 → 26,7
$ressources = array('85');
$parametres = array();
 
$retour = $this->consulterBrut($ressources, $parametres);
$retour = $this->consulter($ressources, $parametres);
 
$this->assertTrue(is_array($retour), 'Retour est un tableau');
$this->assertArrayHasKey('id', $retour, 'Présence champ id');
69,7 → 69,7
$ressources = array('98940');
$parametres = array();
 
$retour = $this->consulterBrut($ressources, $parametres);
$retour = $this->consulter($ressources, $parametres);
 
$this->assertArrayNotHasKey('nom_retenu.id', $retour, 'Abscence champ nom_retenu.id');
$this->assertArrayHasKey('nom_retenu', $retour, 'Présence champ nom_retenu');