diff options
Diffstat (limited to 'apps/dav/tests/unit/CalDAV/CachedSubscriptionObjectTest.php')
-rw-r--r-- | apps/dav/tests/unit/CalDAV/CachedSubscriptionObjectTest.php | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/apps/dav/tests/unit/CalDAV/CachedSubscriptionObjectTest.php b/apps/dav/tests/unit/CalDAV/CachedSubscriptionObjectTest.php index 7d4463c81b4..57931549019 100644 --- a/apps/dav/tests/unit/CalDAV/CachedSubscriptionObjectTest.php +++ b/apps/dav/tests/unit/CalDAV/CachedSubscriptionObjectTest.php @@ -52,11 +52,11 @@ class CachedSubscriptionObjectTest extends \Test\TestCase { $this->assertEquals('BEGIN...', $calendarObject->get()); } - /** - * @expectedException \Sabre\DAV\Exception\MethodNotAllowed - * @expectedExceptionMessage Creating objects in a cached subscription is not allowed - */ + public function testPut() { + $this->expectException(\Sabre\DAV\Exception\MethodNotAllowed::class); + $this->expectExceptionMessage('Creating objects in a cached subscription is not allowed'); + $backend = $this->createMock(CalDavBackend::class); $calendarInfo = [ '{http://owncloud.org/ns}owner-principal' => 'user1', @@ -72,11 +72,11 @@ class CachedSubscriptionObjectTest extends \Test\TestCase { $calendarObject->put(''); } - /** - * @expectedException \Sabre\DAV\Exception\MethodNotAllowed - * @expectedExceptionMessage Deleting objects in a cached subscription is not allowed - */ + public function testDelete() { + $this->expectException(\Sabre\DAV\Exception\MethodNotAllowed::class); + $this->expectExceptionMessage('Deleting objects in a cached subscription is not allowed'); + $backend = $this->createMock(CalDavBackend::class); $calendarInfo = [ '{http://owncloud.org/ns}owner-principal' => 'user1', |