Subversion Repositories eFlore/Applications.eflore-consultation

Rev

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

Rev 169 Rev 204
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...
101
	
101
	
102
	public function testExecuterRechercheSimpleResDecompo() {
102
	/*public function testExecuterRechercheSimpleResDecompo() {
103
		$_GET['type_nom'] = 'nom_scientifique';
103
		$_GET['type_nom'] = 'nom_scientifique';
104
		$_GET['nom'] = 'acer mons';
104
		$_GET['nom'] = 'acer mons';
105
		$_GET['resultat'] = 'decompo';
105
		$_GET['resultat'] = 'decompo';
106
		$cheminRacine = realpath(dirname(__FILE__).'/../configurations/').'/';
106
		$cheminRacine = realpath(dirname(__FILE__).'/../configurations/').'/';
Line 120... Line 120...
120
		$this->assertEquals('6', $resultat['entete']['total']);
120
		$this->assertEquals('6', $resultat['entete']['total']);
121
		$this->assertEquals('6', count($resultat['resultat']));
121
		$this->assertEquals('6', count($resultat['resultat']));
122
		$this->assertArrayHasKey('auteur', $resultat['resultat']['182']);
122
		$this->assertArrayHasKey('auteur', $resultat['resultat']['182']);
123
		$this->assertNotEmpty($sortie, print_r($sortie, true));
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);
124
		$this->assertContains('<input id="nom" name="nom" class="champ" size="30" maxlength="255" type="text" autocomplete="off" value="acer mons" />', $sortie);
125
	}
125
	}*/
126
}
126
}
127
?>
127
?>
128
128