diff options
author | Joas Schilling <coding@schilljs.com> | 2018-01-24 20:10:16 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2018-01-24 20:10:16 +0300 |
commit | 870023365c928e6bc3bd39d0d7f9b4d976dad33e (patch) | |
tree | 74c1438392d2101c154a80d4f4b9d4777c77bd1a /apps/dav/tests/unit/CalDAV/CalDavBackendTest.php | |
parent | c3424df1f026854ed8adbfdf8d96da7a6562a8dd (diff) |
Fix "Undefined method setExpectedException()"
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/dav/tests/unit/CalDAV/CalDavBackendTest.php')
-rw-r--r-- | apps/dav/tests/unit/CalDAV/CalDavBackendTest.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/dav/tests/unit/CalDAV/CalDavBackendTest.php b/apps/dav/tests/unit/CalDAV/CalDavBackendTest.php index 0b8978a0409..fd048240467 100644 --- a/apps/dav/tests/unit/CalDAV/CalDavBackendTest.php +++ b/apps/dav/tests/unit/CalDAV/CalDavBackendTest.php @@ -36,6 +36,7 @@ use OCP\IL10N; use Sabre\DAV\PropPatch; use Sabre\DAV\Xml\Property\Href; use Sabre\DAVACL\IACL; +use Sabre\DAV\Exception\NotFound; /** * Class CalDavBackendTest @@ -526,7 +527,7 @@ EOD; $calendar->setPublishStatus(false); $this->assertEquals(false, $calendar->getPublishStatus()); - $this->setExpectedException('Sabre\DAV\Exception\NotFound'); + $this->expectException(NotFound::class); $this->backend->getPublicCalendar($publicCalendarURI); } |