Subversion Repositories eFlore/Applications.eflore-consultation

Rev

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

Rev 204 Rev 207
Line 97... Line 97...
97
		$this->assertNotEmpty($resultat, print_r($resultat, true));
97
		$this->assertNotEmpty($resultat, print_r($resultat, true));
98
		$this->assertEquals('6', $resultat['entete']['total']);
98
		$this->assertEquals('6', $resultat['entete']['total']);
99
		$this->assertEquals('6', count($resultat['resultat']));
99
		$this->assertEquals('6', count($resultat['resultat']));
100
	}
100
	}
Line 101... Line -...
101
	
-
 
102
	/*public function testExecuterRechercheSimpleResDecompo() {
-
 
103
		$_GET['type_nom'] = 'nom_scientifique';
-
 
104
		$_GET['nom'] = 'acer mons';
-
 
105
		$_GET['resultat'] = 'decompo';
-
 
106
		$cheminRacine = realpath(dirname(__FILE__).'/../configurations/').'/';
-
 
107
		Config::charger($cheminRacine.'bdtfx.ini');
-
 
108
		Registre::set('eFlore.urlBase', new Url(Config::get('base_url_application_index')));
-
 
Line 109... Line -...
109
		Registre::set('parametres.referentiel', 'bdtfx');
-
 
110
 
-
 
111
		$recherche = new Recherche();
-
 
112
		$recherche->initialiser();
-
 
113
		$recherche->executerRechercheSimple();
-
 
114
 
-
 
115
		$donnees = Registre::get('donneesMoteur');
-
 
116
		$resultat = Registre::get('resultats');
-
 
117
		$sortie = implode('', $recherche->getSortie());
-
 
118
		$this->assertEmpty($donnees, print_r($donnees, true));
-
 
119
		$this->assertNotEmpty($resultat, print_r($resultat, true));
-
 
120
		$this->assertEquals('6', $resultat['entete']['total']);
-
 
121
		$this->assertEquals('6', count($resultat['resultat']));
-
 
122
		$this->assertArrayHasKey('auteur', $resultat['resultat']['182']);
-
 
123
		$this->assertNotEmpty($sortie, print_r($sortie, true));
-
 
124
		$this->assertContains('<input id="nom" name="nom" class="champ" size="30" maxlength="255" type="text" autocomplete="off" value="acer mons" />', $sortie);
101
	
125
	}*/
102
 
126
}
103
}