mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 08:16:43 -04:00
fix(tests): Check that the revert was successful
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
cd27ba7e54
commit
5bd1e28594
1 changed files with 3 additions and 1 deletions
|
|
@ -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');
|
||||
|
|
|
|||
Loading…
Reference in a new issue