mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
fix(tests): Also check that the backup status works
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
ec6ed0cf74
commit
134bfb8437
1 changed files with 12 additions and 0 deletions
|
|
@ -98,15 +98,27 @@ class StatusServiceIntegrationTest extends TestCase {
|
|||
'meeting',
|
||||
true,
|
||||
);
|
||||
|
||||
self::assertSame(
|
||||
'meeting',
|
||||
$this->service->findByUserId('test123')->getMessageId(),
|
||||
);
|
||||
self::assertSame(
|
||||
IUserStatus::ONLINE,
|
||||
$this->service->findByUserId('_test123')->getStatus(),
|
||||
);
|
||||
|
||||
$this->service->revertUserStatus(
|
||||
'test123',
|
||||
'meeting',
|
||||
);
|
||||
|
||||
try {
|
||||
$this->service->findByUserId('_test123');
|
||||
$this->fail('Expected DoesNotExistException() to be thrown when finding backup status after reverting');
|
||||
} catch (DoesNotExistException) {
|
||||
}
|
||||
|
||||
self::assertSame(
|
||||
IUserStatus::ONLINE,
|
||||
$this->service->findByUserId('test123')->getStatus(),
|
||||
|
|
|
|||
Loading…
Reference in a new issue