diff options
Diffstat (limited to 'apps/federation/tests/TrustedServersTest.php')
-rw-r--r-- | apps/federation/tests/TrustedServersTest.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/apps/federation/tests/TrustedServersTest.php b/apps/federation/tests/TrustedServersTest.php index 82e5654e63f..2b1f8174e09 100644 --- a/apps/federation/tests/TrustedServersTest.php +++ b/apps/federation/tests/TrustedServersTest.php @@ -76,7 +76,7 @@ class TrustedServersTest extends TestCase { /** @var \PHPUnit_Framework_MockObject_MockObject|ITimeFactory */ private $timeFactory; - public function setUp(): void { + protected function setUp(): void { parent::setUp(); $this->dbHandler = $this->getMockBuilder(DbHandler::class) @@ -352,10 +352,11 @@ class TrustedServersTest extends TestCase { /** * @dataProvider dataTestCheckOwnCloudVersionTooLow - * @expectedException \OC\HintException - * @expectedExceptionMessage Remote server version is too low. 9.0 is required. */ public function testCheckOwnCloudVersionTooLow($status) { + $this->expectException(\OC\HintException::class); + $this->expectExceptionMessage('Remote server version is too low. 9.0 is required.'); + $this->invokePrivate($this->trustedServers, 'checkOwnCloudVersion', [$status]); } |