Skip to content

Commit

Permalink
fix(tests): Check that the revert was successful
Browse files Browse the repository at this point in the history
Signed-off-by: Joas Schilling <[email protected]>
  • Loading branch information
nickvergessen committed Sep 24, 2024
1 parent 1f95736 commit ccd4c9d
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -108,11 +108,13 @@ public function testCreateRestoreBackupAutomatically(): void {
$this->service->findByUserId('_test123')->getStatus(),
);

$this->service->revertUserStatus(
$revertedStatus = $this->service->revertUserStatus(
'test123',
'meeting',
);

self::assertNotNull($revertedStatus, 'Status should have been reverted');

try {
$this->service->findByUserId('_test123');
$this->fail('Expected DoesNotExistException() to be thrown when finding backup status after reverting');
Expand Down

0 comments on commit ccd4c9d

Please sign in to comment.