aboutsummaryrefslogtreecommitdiffstats
path: root/apps/user_status/tests
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2024-09-19 17:51:01 +0200
committerJoas Schilling <coding@schilljs.com>2024-09-25 08:39:15 +0200
commit4b570cf643baaa355778ec41aed9a49c0999d75c (patch)
treea3b961e0beccfaf7c60d70c95d227d10828f321f /apps/user_status/tests
parent8cf91a32d8ebc9a917dbc8a4958db72a062d7c70 (diff)
downloadnextcloud-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.php10
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(),
);
}