test: adjust tests

Signed-off-by: Robin Appelman <robin@icewind.nl>
pull/60575/head
Robin Appelman 1 week ago
parent 280d092f35
commit bb4e98d795
No known key found for this signature in database
GPG Key ID: 42B69D8A64526EFB
  1. 5
      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) {

Loading…
Cancel
Save