Subversion Repositories eFlore/Projets.eflore-projets

Rev

Rev 203 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 203 Rev 205
Line 196... Line 196...
196
		foreach ($retour['resultats'] as $id => $info) {
196
		foreach ($retour['resultats'] as $id => $info) {
197
			$this->assertContains('alpinum', $info['nom_sci'], "Test valeur champ resultats>$id>nom_sci contient alpinum");
197
			$this->assertContains('alpinum', $info['nom_sci'], "Test valeur champ resultats>$id>nom_sci contient alpinum");
198
		}
198
		}
199
	}
199
	}
Line -... Line 200...
-
 
200
 
-
 
201
	public function testRetourChamps() {
-
 
202
		$ressources = array();
-
 
203
		$parametres = array('retour.champs' => 'nom_retenu');
-
 
204
 
-
 
205
		$retour = $this->consulterBrut($ressources, $parametres);
-
 
206
 
-
 
207
		$this->assertArrayHasKey('href.suivant', $retour['entete'], "Présence champ entete>href.suivant");
-
 
208
		$url = $this->listeUrl.'?retour.champs=nom_retenu&navigation.depart=100&navigation.limite=100';
-
 
209
		$this->assertEquals($url, $retour['entete']['href.suivant'], "Valeur champ entete>href.suivant = $url");
-
 
210
		foreach ($retour['resultats'] as $id => $info) {
-
 
211
			$this->assertArrayHasKey('nom_retenu', $info, "Présence champ resultats>$id>nom_retenu ");
-
 
212
		}
-
 
213
	}
200
 
214
 
201
}
215
}
202
?>
216
?>