| Line 215... |
Line 215... |
| 215 |
"Le champs 'type_bio.code' ne doit pas être présent si retour.format=min. ");
|
215 |
"Le champs 'type_bio.code' ne doit pas être présent si retour.format=min. ");
|
| 216 |
$this->assertArrayNotHasKey('type_bio.libelle',$retour,
|
216 |
$this->assertArrayNotHasKey('type_bio.libelle',$retour,
|
| 217 |
"Le champs 'type_bio.libelle' ne doit pas être présent si retour.format=min.");
|
217 |
"Le champs 'type_bio.libelle' ne doit pas être présent si retour.format=min.");
|
| 218 |
$this->assertArrayNotHasKey('type_bio.detail',$retour,
|
218 |
$this->assertArrayNotHasKey('type_bio.detail',$retour,
|
| 219 |
"Le champs 'type_bio.detail' ne doit pas être présent si retour.format=min.");
|
219 |
"Le champs 'type_bio.detail' ne doit pas être présent si retour.format=min.");
|
| 220 |
$champs = array_keys(config::get('champs_ontologiques'));
|
220 |
$champs = array_keys(Outils::recupererTableauConfig('champs_ontologiques'));
|
| 221 |
foreach ($champs as $chps) {
|
221 |
foreach ($champs as $chps) {
|
| 222 |
$this->assertArrayNotHasKey($chps.'.libelle', $retour,
|
222 |
$this->assertArrayNotHasKey($chps.'.libelle', $retour,
|
| 223 |
"Le champs '{$chps}.libelle' ne doit pas être présent si retour.format=min.");
|
223 |
"Le champs '{$chps}.libelle' ne doit pas être présent si retour.format=min.");
|
| 224 |
$this->assertArrayNotHasKey($chps.'.code', $retour,
|
224 |
$this->assertArrayNotHasKey($chps.'.code', $retour,
|
| 225 |
"Le champs '{$chps}.code' ne doit pas être présent si retour.format=min.");
|
225 |
"Le champs '{$chps}.code' ne doit pas être présent si retour.format=min.");
|
| Line 272... |
Line 272... |
| 272 |
$this->assertArrayHasKey('type_bio.detail',$retour,
|
272 |
$this->assertArrayHasKey('type_bio.detail',$retour,
|
| 273 |
"Le champs 'type_bio.detail' doit être présent si retour.format=max.");
|
273 |
"Le champs 'type_bio.detail' doit être présent si retour.format=max.");
|
| 274 |
}
|
274 |
}
|
| Line 275... |
Line 275... |
| 275 |
|
275 |
|
| 276 |
private function verifierParametresEcologie_max($retour,$type) {
|
276 |
private function verifierParametresEcologie_max($retour,$type) {
|
| 277 |
$champs = array_keys(config::get('champs_ontologiques'));
|
277 |
$champs = array_keys(Outils::recupererTableauConfig('champs_ontologiques'));
|
| 278 |
if ($type == 'baseflor') {
|
278 |
if ($type == 'baseflor') {
|
| 279 |
foreach ($champs as $chps) {
|
279 |
foreach ($champs as $chps) {
|
| 280 |
$this->assertArrayHasKey($chps.'.libelle', $retour,
|
280 |
$this->assertArrayHasKey($chps.'.libelle', $retour,
|
| 281 |
"Le champs '{$chps}.libelle' doit être présent si retour.format=max.");
|
281 |
"Le champs '{$chps}.libelle' doit être présent si retour.format=max.");
|