summaryrefslogtreecommitdiffstats
path: root/apps/dav/tests/unit/Command/ListCalendarsTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/dav/tests/unit/Command/ListCalendarsTest.php')
-rw-r--r--apps/dav/tests/unit/Command/ListCalendarsTest.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/dav/tests/unit/Command/ListCalendarsTest.php b/apps/dav/tests/unit/Command/ListCalendarsTest.php
index 9cd02805133..0b381857573 100644
--- a/apps/dav/tests/unit/Command/ListCalendarsTest.php
+++ b/apps/dav/tests/unit/Command/ListCalendarsTest.php
@@ -58,11 +58,11 @@ class ListCalendarsTest extends TestCase {
);
}
- /**
- * @expectedException InvalidArgumentException
- */
+
public function testWithBadUser()
{
+ $this->expectException(\InvalidArgumentException::class);
+
$this->userManager->expects($this->once())
->method('userExists')
->with(self::USERNAME)