summaryrefslogtreecommitdiffstats
path: root/tests/lib/SetupTest.php
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2019-11-27 15:27:18 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2019-11-27 15:27:18 +0100
commit3a7cf40aaa678bea1df143d2982d603b7a334eec (patch)
tree63c1e3ad7f7f401d14411a4d44c523632906afc9 /tests/lib/SetupTest.php
parent0568b012672d650c6b5a49e72c4028dde5463c60 (diff)
downloadnextcloud-server-3a7cf40aaa678bea1df143d2982d603b7a334eec.tar.gz
nextcloud-server-3a7cf40aaa678bea1df143d2982d603b7a334eec.zip
Mode to modern phpunit
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'tests/lib/SetupTest.php')
-rw-r--r--tests/lib/SetupTest.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/lib/SetupTest.php b/tests/lib/SetupTest.php
index 93c04ce8449..7ab3eb78539 100644
--- a/tests/lib/SetupTest.php
+++ b/tests/lib/SetupTest.php
@@ -120,11 +120,11 @@ class SetupTest extends \Test\TestCase {
$this->assertSame($expectedResult, $result);
}
- /**
- * @expectedException \Exception
- * @expectedExceptionMessage Supported databases are not properly configured.
- */
+
public function testGetSupportedDatabaseException() {
+ $this->expectException(\Exception::class);
+ $this->expectExceptionMessage('Supported databases are not properly configured.');
+
$this->config
->expects($this->once())
->method('getValue')