Line 1... |
Line 1... |
1 |
<?php
|
1 |
<?php
|
2 |
require_once dirname(__FILE__).'/../ConsultationEflorePhpUnit.php';
|
2 |
require_once dirname(__FILE__).'/../ConsultationEflorePhpUnit.php';
|
Line 3... |
Line 3... |
3 |
|
3 |
|
4 |
class RechercheSimpleTest extends ConsultationEflorePhpUnit {
|
4 |
class RechercheSimpleTest extends ConsultationEflorePhpUnit {
|
5 |
public function testMoteurRechercheSimple() {
|
- |
|
6 |
$cheminRacine = realpath(dirname(__FILE__).'/../configurations/').'/';
|
5 |
public function testMoteurRechercheSimple() {
|
7 |
Config::charger($cheminRacine.'bdtfx.ini');
|
6 |
Config::charger(CONFIG_DIR . '/bdtfx.ini');
|
8 |
Registre::set('eFlore.urlBase', new Url(Config::get('base_url_application_index')));
|
7 |
Registre::set('eFlore.urlBase', new Url(Config::get('base_url_application_index')));
|
Line 9... |
Line 8... |
9 |
Registre::set('parametres.referentiel', 'bdtfx');
|
8 |
Registre::set('parametres.referentiel', 'bdtfx');
|
Line 18... |
Line 17... |
18 |
$this->assertContains('<input id="eflore_nomenclature_action" name="action" type="hidden" value="rechercheSimple" />', $sortie);
|
17 |
$this->assertContains('<input id="eflore_nomenclature_action" name="action" type="hidden" value="rechercheSimple" />', $sortie);
|
19 |
$this->assertNotContains('<input id="type_nom_vernaculaire" name="type_nom" value="nom_vernaculaire" type="radio" checked="checked" />', $sortie);
|
18 |
$this->assertNotContains('<input id="type_nom_vernaculaire" name="type_nom" value="nom_vernaculaire" type="radio" checked="checked" />', $sortie);
|
20 |
}
|
19 |
}
|
Line 21... |
Line 20... |
21 |
|
20 |
|
22 |
public function testMoteurRechercheSimpleForm() {
|
- |
|
23 |
$cheminRacine = realpath(dirname(__FILE__).'/../configurations/').'/';
|
21 |
public function testMoteurRechercheSimpleForm() {
|
24 |
Config::charger($cheminRacine.'bdtfx.ini');
|
22 |
Config::charger(CONFIG_DIR . '/bdtfx.ini');
|
25 |
Registre::set('eFlore.urlBase', new Url(Config::get('base_url_application_index')));
|
23 |
Registre::set('eFlore.urlBase', new Url(Config::get('base_url_application_index')));
|
26 |
Registre::set('parametres.referentiel', 'bdtfx');
|
24 |
Registre::set('parametres.referentiel', 'bdtfx');
|
27 |
$donnees['type_nom'] = 'nom_vernaculaire';
|
25 |
$donnees['type_nom'] = 'nom_vernaculaire';
|
28 |
$donnees['nom'] = 'acer';
|
26 |
$donnees['nom'] = 'acer';
|