Skip to content

Commit 17ad1e7

Browse files
committed
test: adjust tests
Signed-off-by: Robin Appelman <robin@icewind.nl>
1 parent 8613dd7 commit 17ad1e7

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

apps/federation/tests/Controller/OCSAuthAPIControllerTest.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,9 @@ public function testRequestSharedSecret(string $token, string $localToken, bool
125125

126126
try {
127127
$this->ocsAuthApi->requestSharedSecret($url, $token);
128-
$this->assertTrue($ok);
128+
$this->assertTrue($isTrustedServer);
129129
} catch (OCSForbiddenException $e) {
130-
$this->assertFalse($ok);
130+
$this->assertFalse($isTrustedServer);
131131
}
132132
}
133133

@@ -183,7 +183,6 @@ public function testGetSharedSecret(bool $isTrustedServer, bool $isValidToken, b
183183

184184
try {
185185
$result = $ocsAuthApi->getSharedSecret($url, $token);
186-
$this->assertTrue($ok);
187186
$data = $result->getData();
188187
$this->assertSame('secret', $data['sharedSecret']);
189188
} catch (OCSForbiddenException $e) {

0 commit comments

Comments
 (0)