Subversion Repositories eFlore/Projets.eflore-projets

Rev

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

Rev 790 Rev 903
Line 242... Line 242...
242
			$this->assertNotEmpty($valeurs['niveau.detail']);
242
			$this->assertNotEmpty($valeurs['niveau.detail']);
243
		}
243
		}
244
	}
244
	}
Line 245... Line 245...
245
	
245
	
246
	public function testMasqueNiveau() {
-
 
247
		$ressourcesList = array(
-
 
248
			array(),
-
 
249
			array('catminat:07-2.0.1.0.1-08','relations','niveaux-sup'),
-
 
250
		);
246
	public function testMasqueNiveau() {
251
		$parametres = array('masque.niveau' => 'ORD');
-
 
-
 
247
		$parametres = array('masque.niveau' => 'ORD');
252
		foreach ($ressourcesList as $ressources) {
248
 
253
			$url = ServiceEflorePhpUnit::creerUrl($this->service, $ressources, $parametres);
249
		$url = ServiceEflorePhpUnit::creerUrl($this->service, [], $parametres);
254
			$retour = $this->consulterJson($this->service, $this->projet, $ressources, $parametres);
250
		$retour = $this->consulterJson($this->service, $this->projet, [], $parametres);
255
			foreach ($retour['resultat'] as $cle => $valeurs) {
251
		foreach ($retour['resultat'] as $cle => $valeurs) {
256
				$this->assertEquals( $valeurs['niveau.code'], 'ORD','le masque.niveau ne fonctionne pas.');
-
 
257
			}
252
			$this->assertEquals( $valeurs['niveau.code'], 'ORD','le masque.niveau ne fonctionne pas.');
-
 
253
		}
-
 
254
 
-
 
255
		$url = ServiceEflorePhpUnit::creerUrl($this->service, ['catminat:07-2.0.1.0.1-08','relations','niveaux-sup'], $parametres);
-
 
256
		$retour = $this->consulterJson($this->service, $this->projet, ['catminat:07-2.0.1.0.1-08','relations','niveaux-sup'], $parametres);
-
 
257
		foreach ($retour['resultat'] as $cle => $valeurs) {
-
 
258
			$this->assertEquals( $valeurs['niveau.code'], 'ORD','le masque.niveau ne fonctionne pas.');
-
 
259
		}
258
		}
260
 
Line 259... Line 261...
259
	}
261
	}
260
	
262
	
261
	public function testMasqueRetenu() {
263
	public function testMasqueRetenu() {