feat: suivre la température pendant les tournées
This commit is contained in:
parent
68590eddbb
commit
d35434c522
15 changed files with 129 additions and 23 deletions
|
|
@ -68,6 +68,13 @@ try {
|
|||
$actual = (int) $db->query('SELECT COUNT(*) FROM _migrations')->fetchColumn();
|
||||
$assert($actual === $expected, "$actual/$expected migrations");
|
||||
});
|
||||
$test('Les tournées peuvent enregistrer une température', function () use ($db, $assert): void {
|
||||
$columns = array_column(
|
||||
$db->query('PRAGMA table_info(care_round_observations)')->fetchAll(PDO::FETCH_ASSOC),
|
||||
'name',
|
||||
);
|
||||
$assert(in_array('temperature_c', $columns, true), 'Colonne temperature_c absente');
|
||||
});
|
||||
$test("Les voies d’administration des médicaments sont initialisées", function () use ($db, $assert): void {
|
||||
$routes = $db
|
||||
->query('SELECT accro FROM ref_med_administration ORDER BY id')
|
||||
|
|
|
|||
Loading…
Reference in a new issue