aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/Remote
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/Remote')
-rw-r--r--tests/lib/Remote/Api/OCSTest.php8
-rw-r--r--tests/lib/Remote/InstanceTest.php3
2 files changed, 7 insertions, 4 deletions
diff --git a/tests/lib/Remote/Api/OCSTest.php b/tests/lib/Remote/Api/OCSTest.php
index 3fcc486f246..89fd45f0791 100644
--- a/tests/lib/Remote/Api/OCSTest.php
+++ b/tests/lib/Remote/Api/OCSTest.php
@@ -1,4 +1,5 @@
<?php
+
/**
* SPDX-FileCopyrightText: 2017 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
@@ -6,6 +7,7 @@
namespace Test\Remote\Api;
+use OC\ForbiddenException;
use OC\Memcache\ArrayCache;
use OC\Remote\Api\OCS;
use OC\Remote\Credentials;
@@ -52,7 +54,7 @@ class OCSTest extends TestCase {
$this->assertEquals('user', $user->getUserId());
}
-
+
public function testGetUserInvalidResponse(): void {
$this->expectException(\Exception::class);
$this->expectExceptionMessage('Invalid user response, expected field email not found');
@@ -66,9 +68,9 @@ class OCSTest extends TestCase {
$client->getUser('user');
}
-
+
public function testInvalidPassword(): void {
- $this->expectException(\OC\ForbiddenException::class);
+ $this->expectException(ForbiddenException::class);
$client = $this->getOCSClient();
diff --git a/tests/lib/Remote/InstanceTest.php b/tests/lib/Remote/InstanceTest.php
index 027a67010be..560706e4572 100644
--- a/tests/lib/Remote/InstanceTest.php
+++ b/tests/lib/Remote/InstanceTest.php
@@ -1,4 +1,5 @@
<?php
+
/**
* SPDX-FileCopyrightText: 2017 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
@@ -57,7 +58,7 @@ class InstanceTest extends TestCase {
$this->assertEquals(false, $instance2->isActive());
}
-
+
public function testPreventDowngradeAttach(): void {
$this->expectException(\Exception::class);
$this->expectExceptionMessage('refusing to connect to remote instance(example.com) over http that was previously accessible over https');