From e9fc60b7226cb88dfd873694b2180ae4fef042d9 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Tue, 19 May 2026 19:39:05 +0200 Subject: [PATCH] test: adjust tests Signed-off-by: Robin Appelman --- .../federation/tests/Controller/OCSAuthAPIControllerTest.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/apps/federation/tests/Controller/OCSAuthAPIControllerTest.php b/apps/federation/tests/Controller/OCSAuthAPIControllerTest.php index 9a6a39d9275..68a8525c769 100644 --- a/apps/federation/tests/Controller/OCSAuthAPIControllerTest.php +++ b/apps/federation/tests/Controller/OCSAuthAPIControllerTest.php @@ -90,9 +90,9 @@ class OCSAuthAPIControllerTest extends TestCase { try { $this->ocsAuthApi->requestSharedSecret($url, $token); - $this->assertTrue($ok); + $this->assertTrue($isTrustedServer); } catch (OCSForbiddenException $e) { - $this->assertFalse($ok); + $this->assertFalse($isTrustedServer); } } @@ -144,7 +144,6 @@ class OCSAuthAPIControllerTest extends TestCase { try { $result = $ocsAuthApi->getSharedSecret($url, $token); - $this->assertTrue($ok); $data = $result->getData(); $this->assertSame('secret', $data['sharedSecret']); } catch (OCSForbiddenException $e) {