You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 3, 2023. It is now read-only.
✨ (Database tests) Added a way to backup the database and check the changes made to it
it is now possible to call the backupDatabase method from the EtuUTTApiTestCase class to make a backup, and then call the assertDatabaseSameExcept method to assert the new database and the old one are
the same. Expected differences can be specified in the arguments of the function
// Changing the group there doesn't change the group in the database anymore (even if we flush)
25
27
$this->em->detach($group);
26
28
$group->getDescriptionTranslation()
@@ -55,27 +57,43 @@ public function testNormal(): void
55
57
})->toArray(),
56
58
])]);
57
59
// TODO : do something about the updatedAt field, it doesn't always work depending on the second-subdivisions (ok, i get what i mean) we are executing the test
0 commit comments