aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2024-09-24 08:19:42 +0200
committerJoas Schilling <coding@schilljs.com>2024-09-25 08:35:24 +0200
commit79084d577e212ba60fbd9a2f87af9a28b3cf2832 (patch)
treec03bd9f24982a5b58d51f14f2c07f775b2003d29 /apps
parent134bfb8437c5e78026e29673a937ec3b9e322b6a (diff)
downloadnextcloud-server-79084d577e212ba60fbd9a2f87af9a28b3cf2832.tar.gz
nextcloud-server-79084d577e212ba60fbd9a2f87af9a28b3cf2832.zip
fix(tests): Check that the revert was successfulbugfix/noid/more-reliable-tests
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps')
-rw-r--r--apps/user_status/tests/Integration/Service/StatusServiceIntegrationTest.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/user_status/tests/Integration/Service/StatusServiceIntegrationTest.php b/apps/user_status/tests/Integration/Service/StatusServiceIntegrationTest.php
index 2ed98507354..65b07997e82 100644
--- a/apps/user_status/tests/Integration/Service/StatusServiceIntegrationTest.php
+++ b/apps/user_status/tests/Integration/Service/StatusServiceIntegrationTest.php
@@ -108,11 +108,13 @@ class StatusServiceIntegrationTest extends TestCase {
$this->service->findByUserId('_test123')->getStatus(),
);
- $this->service->revertUserStatus(
+ $revertedStatus = $this->service->revertUserStatus(
'test123',
'meeting',
);
+ self::assertNotNull($revertedStatus, 'Status should have been reverted');
+
try {
$this->service->findByUserId('_test123');
$this->fail('Expected DoesNotExistException() to be thrown when finding backup status after reverting');