mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
fix(user_status): Fix integration test of user status
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
6ad620fe27
commit
2110698ea3
1 changed files with 5 additions and 5 deletions
|
|
@ -154,25 +154,25 @@ class StatusServiceIntegrationTest extends TestCase {
|
|||
);
|
||||
$this->service->setUserStatus(
|
||||
'test123',
|
||||
IUserStatus::AWAY,
|
||||
IUserStatus::MESSAGE_CALENDAR_BUSY,
|
||||
IUserStatus::DND,
|
||||
IUserStatus::MESSAGE_AVAILABILITY,
|
||||
true,
|
||||
);
|
||||
self::assertSame(
|
||||
'meeting',
|
||||
'availability',
|
||||
$this->service->findByUserId('test123')->getMessageId(),
|
||||
);
|
||||
|
||||
$nostatus = $this->service->setUserStatus(
|
||||
'test123',
|
||||
IUserStatus::AWAY,
|
||||
IUserStatus::MESSAGE_AVAILABILITY,
|
||||
IUserStatus::MESSAGE_CALENDAR_BUSY,
|
||||
true,
|
||||
);
|
||||
|
||||
self::assertNull($nostatus);
|
||||
self::assertSame(
|
||||
IUserStatus::MESSAGE_CALENDAR_BUSY,
|
||||
IUserStatus::MESSAGE_AVAILABILITY,
|
||||
$this->service->findByUserId('test123')->getMessageId(),
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue