aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/SetupTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/SetupTest.php')
-rw-r--r--tests/lib/SetupTest.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/lib/SetupTest.php b/tests/lib/SetupTest.php
index 176a5b19f29..7ab3eb78539 100644
--- a/tests/lib/SetupTest.php
+++ b/tests/lib/SetupTest.php
@@ -36,7 +36,7 @@ class SetupTest extends \Test\TestCase {
/** @var Installer|\PHPUnit_Framework_MockObject_MockObject */
protected $installer;
- protected function setUp() {
+ protected function setUp(): void {
parent::setUp();
$this->config = $this->createMock(SystemConfig::class);
@@ -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')