Subversion Repositories eFlore/Projets.eflore-projets

Compare Revisions

Ignore whitespace Rev 789 → Rev 790

/trunk/services/tests/0.1/baseflor/OntologiesBaseflorTest.php
12,8 → 12,8
public function testRecherche() {
$ressources = array();
$parametres = array("navigation.depart" => 20, "navigation.limite" => 100);
$url = $this->creerUrl($ressources, $parametres);
$retour = $this->consulterJson($ressources, $parametres);
$url = ServiceEflorePhpUnit::creerUrl($this->service, $ressources, $parametres);
$retour = $this->consulterJson($this->service, $this->projet, $ressources, $parametres);
$this->assertNotEmpty($retour, 'données absentes');
//limite
$this->assertArrayHasKey('limite', $retour['entete'],
33,7 → 33,7
$parametres_url =
array('navigation.depart' => ($retour['entete']['limite']+$retour['entete']['depart']),
'navigation.limite' => $retour['entete']['limite'] );
$urlsuivant = $this->creerUrl($ressources, $parametres_url);
$urlsuivant = ServiceEflorePhpUnit::creerUrl($this->service, $ressources, $parametres_url);
$this->assertEquals($urlsuivant, $retour['entete']['href.suivant'],
"L' url $urlsuivant de l'entete est incorrecte.");
}