fix(tests): Check that the revert was successful

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2024-09-24 08:19:42 +02:00
parent cd27ba7e54
commit 5bd1e28594
No known key found for this signature in database
GPG key ID: F72FA5B49FFA96B0

View file

@ -108,11 +108,13 @@ class StatusServiceIntegrationTest extends TestCase {
$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');