mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 01:30:50 -04:00
test: adjust tests
Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
parent
686cb2740c
commit
d14d8a41f0
1 changed files with 2 additions and 3 deletions
|
|
@ -105,9 +105,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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -160,7 +160,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…
Reference in a new issue