fix(user_status): Fix integration test of user status

Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/48215/head
Joas Schilling 2024-09-19 17:51:01 +07:00
parent 6ad620fe27
commit 2110698ea3
No known key found for this signature in database
GPG Key ID: F72FA5B49FFA96B0
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(),
);
}