Skip to content

Commit 5dbe765

Browse files
committed
feat(reponse): Retrait du type 48 heures
Le type "Dans les 48 heures" n'est plus utilisé, nous le retirons donc
1 parent d71b2bb commit 5dbe765

File tree

3 files changed

+2
-6
lines changed

3 files changed

+2
-6
lines changed

assets/enum/demande_clinique/reponse/type.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
export const PRIORITAIRE = 1;
22
export const DANS_L_HEURE = 2;
33
export const DANS_LA_JOURNEE = 3;
4-
export const DANS_LES_48_HEURES = 4;
54

65
export const getAll = () => {
7-
return [PRIORITAIRE, DANS_L_HEURE, DANS_LA_JOURNEE, DANS_LES_48_HEURES];
6+
return [PRIORITAIRE, DANS_L_HEURE, DANS_LA_JOURNEE];
87
};
98

109
export const getLabel = (type) => {
@@ -15,8 +14,6 @@ export const getLabel = (type) => {
1514
return 'Dans l\'heure';
1615
case DANS_LA_JOURNEE:
1716
return 'Dans la journée';
18-
case DANS_LES_48_HEURES:
19-
return 'Dans les 48 heures';
2017
default:
2118
return 'Aucun type';
2219
}

src/Enum/DemandeClinique/Reponse/Type.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ public static function getAll(): array
1515
self::PRIORITAIRE,
1616
self::DANS_L_HEURE,
1717
self::DANS_LA_JOURNEE,
18-
self::DANS_LES_48_HEURES,
1918
];
2019
}
2120
}

tests/units/Manager/DemandeClinique/ReponseManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public function testCreerKo()
6060
$depot = $this->getDepot(),
6161
$titre = 'titre',
6262
$description = 'description',
63-
$type = 5
63+
$type = 4
6464
)
6565
->if(
6666
$this->reponseValidator->getMockController()->valider = function () {

0 commit comments

Comments
 (0)