Skip to content

Commit e9fc60b

Browse files
committed
test: adjust tests
Signed-off-by: Robin Appelman <robin@icewind.nl>
1 parent 705abc2 commit e9fc60b

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

9191
try {
9292
$this->ocsAuthApi->requestSharedSecret($url, $token);
93-
$this->assertTrue($ok);
93+
$this->assertTrue($isTrustedServer);
9494
} catch (OCSForbiddenException $e) {
95-
$this->assertFalse($ok);
95+
$this->assertFalse($isTrustedServer);
9696
}
9797
}
9898

@@ -144,7 +144,6 @@ public function testGetSharedSecret(bool $isTrustedServer, bool $isValidToken, b
144144

145145
try {
146146
$result = $ocsAuthApi->getSharedSecret($url, $token);
147-
$this->assertTrue($ok);
148147
$data = $result->getData();
149148
$this->assertSame('secret', $data['sharedSecret']);
150149
} catch (OCSForbiddenException $e) {

0 commit comments

Comments
 (0)