4,7 → 4,7 |
class CommunAideTest extends ServiceEflorePhpUnit { |
|
public function __construct() { |
$this->projet = 'commun'; |
$this->projet = 'eflore'; |
$this->service = 'aide'; |
} |
|
13,9 → 13,9 |
$parametres = array(); |
$url = $this->creerUrl($ressources, $parametres); |
$retour = $this->consulterJson($ressources, $parametres); |
$this->assertNotEmpty($retour['PROJET COMMUN'], 'données absentes'); |
$this->assertArrayHasKey('service.nom', $retour['PROJET COMMUN']['projet.services'][0], "Le json ne contient pas d'attribut : editeur. Voir : $url"); |
$this->assertEquals('ontologies', $retour['PROJET COMMUN']['projet.services'][0]['service.nom'], "L'attribut 'editeur' devrait avoir la valeur 'Tela Botanica'. Voir : $url"); |
$this->assertNotEmpty($retour['PROJET EFLORE'], 'données absentes'); |
$this->assertArrayHasKey('service.nom', $retour['PROJET EFLORE']['projet.services'][0], "Le json ne contient pas d'attribut : editeur. Voir : $url"); |
$this->assertEquals('ontologies', $retour['PROJET EFLORE']['projet.services'][0]['service.nom'], "L'attribut 'editeur' devrait avoir la valeur 'Tela Botanica'. Voir : $url"); |
} |
|
public function testAideProjets() { |