Skip to content

Commit d14d8a4

Browse files
committed
test: adjust tests
Signed-off-by: Robin Appelman <robin@icewind.nl>
1 parent 686cb27 commit d14d8a4

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
@@ -105,9 +105,9 @@ public function testRequestSharedSecret(string $token, string $localToken, bool
105105

106106
try {
107107
$this->ocsAuthApi->requestSharedSecret($url, $token);
108-
$this->assertTrue($ok);
108+
$this->assertTrue($isTrustedServer);
109109
} catch (OCSForbiddenException $e) {
110-
$this->assertFalse($ok);
110+
$this->assertFalse($isTrustedServer);
111111
}
112112
}
113113

@@ -160,7 +160,6 @@ public function testGetSharedSecret(bool $isTrustedServer, bool $isValidToken, b
160160

161161
try {
162162
$result = $ocsAuthApi->getSharedSecret($url, $token);
163-
$this->assertTrue($ok);
164163
$data = $result->getData();
165164
$this->assertSame('secret', $data['sharedSecret']);
166165
} catch (OCSForbiddenException $e) {

0 commit comments

Comments
 (0)