Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/Remote/InstanceTest.php')
-rw-r--r--tests/lib/Remote/InstanceTest.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/lib/Remote/InstanceTest.php b/tests/lib/Remote/InstanceTest.php
index 7253228f231..0adb608d875 100644
--- a/tests/lib/Remote/InstanceTest.php
+++ b/tests/lib/Remote/InstanceTest.php
@@ -73,11 +73,11 @@ class InstanceTest extends TestCase {
$this->assertEquals(false, $instance2->isActive());
}
- /**
- * @expectedException \Exception
- * @expectedExceptionMessage refusing to connect to remote instance(example.com) over http that was previously accessible over https
- */
+
public function testPreventDowngradeAttach() {
+ $this->expectException(\Exception::class);
+ $this->expectExceptionMessage('refusing to connect to remote instance(example.com) over http that was previously accessible over https');
+
$instance = new Instance('example.com', $this->cache, $this->getClientService());
$this->expectGetRequest('https://example.com/status.php', '{"installed":true,"maintenance":false,"needsDbUpgrade":false,"version":"13.0.0.5","versionstring":"13.0.0 alpha","edition":"","productname":"Nextcloud"}');