summaryrefslogtreecommitdiffstats
path: root/apps/dav/tests/unit/Connector/Sabre/MaintenancePluginTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/dav/tests/unit/Connector/Sabre/MaintenancePluginTest.php')
-rw-r--r--apps/dav/tests/unit/Connector/Sabre/MaintenancePluginTest.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/dav/tests/unit/Connector/Sabre/MaintenancePluginTest.php b/apps/dav/tests/unit/Connector/Sabre/MaintenancePluginTest.php
index a604757520d..a9c8929dee6 100644
--- a/apps/dav/tests/unit/Connector/Sabre/MaintenancePluginTest.php
+++ b/apps/dav/tests/unit/Connector/Sabre/MaintenancePluginTest.php
@@ -39,18 +39,18 @@ class MaintenancePluginTest extends TestCase {
/** @var MaintenancePlugin */
private $maintenancePlugin;
- public function setUp(): void {
+ protected function setUp(): void {
parent::setUp();
$this->config = $this->getMockBuilder(IConfig::class)->getMock();
$this->maintenancePlugin = new MaintenancePlugin($this->config);
}
- /**
- * @expectedException \Sabre\DAV\Exception\ServiceUnavailable
- * @expectedExceptionMessage System in maintenance mode.
- */
+
public function testMaintenanceMode() {
+ $this->expectException(\Sabre\DAV\Exception\ServiceUnavailable::class);
+ $this->expectExceptionMessage('System in maintenance mode.');
+
$this->config
->expects($this->exactly(1))
->method('getSystemValueBool')