diff --git a/apps/user_status/tests/Integration/Service/StatusServiceIntegrationTest.php b/apps/user_status/tests/Integration/Service/StatusServiceIntegrationTest.php index 2ed9850735460..65b07997e82b8 100644 --- a/apps/user_status/tests/Integration/Service/StatusServiceIntegrationTest.php +++ b/apps/user_status/tests/Integration/Service/StatusServiceIntegrationTest.php @@ -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');