Subversion Repositories eFlore/Applications.eflore-consultation

Compare Revisions

Ignore whitespace Rev 164 → Rev 165

/trunk/tests/modules/RechercheSimpleTest.php
3,34 → 3,6
 
class RechercheSimpleTest extends ConsultationEflorePhpUnit {
public function testMoteurRechercheSimple() {
$moteur = '<!-- DEBUT FORM_NOM -->
<script type="text/javascript">
<!--
var urlServiceAutocompletionNomsSci = "http://localhost/service:eflore:0.1/bdtfx/noms";
var urlServiceAutocompletionNomsVerna = "";
var urlBaseFicheTaxon = "http://localhost/opt/lampp/bin/phpunit?referentiel=bdtfx&module=fiche&action=fiche&nn={num_taxon}";
var valeurDefautNomSci = "Rechercher un nom scientifique";
var valeurDefautNomVerna = "Rechercher un nom commun";
// -->
</script>
<form id="ef-form-nomenclature" name="ef-form-nomenclature" action="http://localhost/opt/lampp/bin/phpunit?referentiel=bdtfx&amp;module=fiche&amp;action=fiche&amp;nn={num_taxon}" method="get" class="importance1">
<fieldset>
<h1>Rechercher une plante</h1>
<span class="zone-choix-type-nom">
<input id="type-nom-scientifique" name="type_nom" type="hidden" value="nom_scientifique" />
Nom scientifique </span>
<input id="nom" name="nom" class="champ" size="30" maxlength="255" type="text" autocomplete="off" />
<span id="zone-liens-recherche">
<input id="referentiel" name="referentiel" type="hidden" value="bdtfx" />
<input id="module" name="module" type="hidden" value="recherche" />
<input id="action" name="action" type="hidden" value="rechercheSimple" />
<input id="eflore_nomenclature_submit" name="submit" type="submit" value="OK" class="ok"/>
<input id="eflore_nomenclature_fiche" name="submit" type="submit" value="Accès fiche" />
</span>
</fieldset>
</form>
<!-- FIN FORM_NOM -->';
 
$cheminRacine = realpath(dirname(__FILE__).'/../configurations/').'/';
Config::charger($cheminRacine.'bdtfx.ini');
Registre::set('eFlore.urlBase', new Url(Config::get('base_url_application_index')));