Subversion Repositories eFlore/Projets.eflore-projets

Compare Revisions

Ignore whitespace Rev 789 → Rev 790

/trunk/services/tests/0.1/eflore/EfloreCartesTest.php
21,7 → 21,7
$parametres = array('projet' => 'general', 'masque.nn' => '141', 'masque.nt' => '8522',
'masque.ns' => 'Acer campestre', 'masque.au' => 'L.', 'retour' => 'text/html');
 
$this->retour = $this->consulterBrut($ressources, $parametres);
$this->retour = ServiceEflorePhpUnit::consulterBrut($this->service, $this->projet, $ressources, $parametres);
$this->assertNotEmpty($this->retour, $this->retour);
$this->assertContains('<img', $this->retour, 'doit contenir une balise image');
$this->assertContains('nt8522_france_utm_600x564.png', $this->retour, 'l\'adresse doit se terminer par nt8522_france_utm_600x564.png');
34,7 → 34,7
$ressources = array('legende');
$parametres = array();
 
$this->retour = $this->consulterJson($ressources, $parametres);
$this->retour = $this->consulterJson($this->service, $this->projet, $ressources, $parametres);
$this->assertNotEmpty($this->retour);
$this->assertGreaterThanOrEqual(4, count($this->retour), 'doit contenir au - les légendes de cel, cen-lr, sophy et plusieurs'.$this->retour);
$this->assertArrayHasKey('code', $this->retour[0], 'contient le code du projet');