Subversion Repositories eFlore/Projets.eflore-projets

Rev

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

Rev 203 Rev 206
Line 1... Line 1...
1
<?php
1
<?php
2
require_once dirname(__FILE__).'/../ServicePhpUnit.php';
2
require_once dirname(__FILE__).'/../ServicePhpUnit.php';
Line 3... Line 3...
3
 
3
 
Line 4... Line 4...
4
class NomDetailsFournierTest extends ServicePhpUnit {
4
class NomDetailsFournierTest extends ServicePhpUnit {
5
 
5
 
6
	private $nomDetailSqueletteUrl = 'http://localhost/service:eflore:0.1/fournier/noms/%s';
6
	private $nomDetailSqueletteUrl = 'http://localhost/service:eflore:0.2/fournier/noms/%s';
7
	private $ontologieHrefTpl = 'http://localhost/service:eflore:0.1/bdnt/ontologies/rangTaxo:%s';
7
	private $ontologieHrefTpl = 'http://localhost/service:eflore:0.2/bdnt/ontologies/rangTaxo:%s';
8
	private $champsProjet = array(
8
	private $champsProjet = array(
9
		'nom_scientifique' => 'nom_scientifique',
9
		'nom_scientifique' => 'nom_scientifique',
10
		'auteur_origine' => 'auteur_origine',
10
		'auteur_origine' => 'auteur_origine',
Line 23... Line 23...
23
		'culture' => 'culture');
23
		'culture' => 'culture');
Line 24... Line 24...
24
 
24
 
25
	public function __construct() {
25
	public function __construct() {
26
		$this->projet = 'fournier';
26
		$this->projet = 'fournier';
27
		$this->service = 'noms';
27
		$this->service = 'noms';
28
		$this->classeTestee = 'NomDetailsFournier';
28
		$this->classeTestee = 'NomDetailsGenerique';
Line 29... Line 29...
29
	}
29
	}
30
 
30
 
31
	public function initialiserService(NomsListe $service) {
31
	public function initialiserService(NomsListe $service) {
Line 36... Line 36...
36
 
36
 
37
	public function testSansParametres() {
37
	public function testSansParametres() {
38
		$ressources = array('85');
38
		$ressources = array('85');
Line 39... Line 39...
39
		$parametres = array();
39
		$parametres = array();
Line 40... Line 40...
40
 
40
 
41
		$retour = $this->consulterBrut($ressources, $parametres);
41
		$retour = $this->consulter($ressources, $parametres);
42
 
42
 
43
		$this->assertTrue(is_array($retour), 'Retour est un tableau');
43
		$this->assertTrue(is_array($retour), 'Retour est un tableau');