diff options
author | Joas Schilling <coding@schilljs.com> | 2024-09-19 17:51:01 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2024-09-25 08:39:15 +0200 |
commit | 4b570cf643baaa355778ec41aed9a49c0999d75c (patch) | |
tree | a3b961e0beccfaf7c60d70c95d227d10828f321f /apps/user_status/tests | |
parent | 8cf91a32d8ebc9a917dbc8a4958db72a062d7c70 (diff) | |
download | nextcloud-server-4b570cf643baaa355778ec41aed9a49c0999d75c.tar.gz nextcloud-server-4b570cf643baaa355778ec41aed9a49c0999d75c.zip |
fix(user_status): Fix integration test of user status
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/user_status/tests')
-rw-r--r-- | apps/user_status/tests/Integration/Service/StatusServiceIntegrationTest.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/user_status/tests/Integration/Service/StatusServiceIntegrationTest.php b/apps/user_status/tests/Integration/Service/StatusServiceIntegrationTest.php index 1ca9ce812bc..a035422087b 100644 --- a/apps/user_status/tests/Integration/Service/StatusServiceIntegrationTest.php +++ b/apps/user_status/tests/Integration/Service/StatusServiceIntegrationTest.php @@ -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(), ); } |