summaryrefslogtreecommitdiffstats
path: root/apps/dav/tests/unit/Provisioning/Apple/AppleProvisioningNodeTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/dav/tests/unit/Provisioning/Apple/AppleProvisioningNodeTest.php')
-rw-r--r--apps/dav/tests/unit/Provisioning/Apple/AppleProvisioningNodeTest.php26
1 files changed, 13 insertions, 13 deletions
diff --git a/apps/dav/tests/unit/Provisioning/Apple/AppleProvisioningNodeTest.php b/apps/dav/tests/unit/Provisioning/Apple/AppleProvisioningNodeTest.php
index 693b3f61f9d..0253592ede0 100644
--- a/apps/dav/tests/unit/Provisioning/Apple/AppleProvisioningNodeTest.php
+++ b/apps/dav/tests/unit/Provisioning/Apple/AppleProvisioningNodeTest.php
@@ -34,7 +34,7 @@ class AppleProvisioningNodeTest extends TestCase {
/** @var AppleProvisioningNode */
private $node;
- public function setUp() {
+ protected function setUp(): void {
parent::setUp();
$this->timeFactory = $this->createMock(ITimeFactory::class);
@@ -45,11 +45,11 @@ class AppleProvisioningNodeTest extends TestCase {
$this->assertEquals('apple-provisioning.mobileconfig', $this->node->getName());
}
- /**
- * @expectedException \Sabre\DAV\Exception\Forbidden
- * @expectedExceptionMessage Renaming apple-provisioning.mobileconfig is forbidden
- */
+
public function testSetName() {
+ $this->expectException(\Sabre\DAV\Exception\Forbidden::class);
+ $this->expectExceptionMessage('Renaming apple-provisioning.mobileconfig is forbidden');
+
$this->node->setName('foo');
}
@@ -57,11 +57,11 @@ class AppleProvisioningNodeTest extends TestCase {
$this->assertEquals(null, $this->node->getLastModified());
}
- /**
- * @expectedException \Sabre\DAV\Exception\Forbidden
- * @expectedExceptionMessage apple-provisioning.mobileconfig may not be deleted
- */
+
public function testDelete() {
+ $this->expectException(\Sabre\DAV\Exception\Forbidden::class);
+ $this->expectExceptionMessage('apple-provisioning.mobileconfig may not be deleted');
+
$this->node->delete();
}
@@ -76,11 +76,11 @@ class AppleProvisioningNodeTest extends TestCase {
], $this->node->getProperties([]));
}
- /**
- * @expectedException \Sabre\DAV\Exception\Forbidden
- * @expectedExceptionMessage apple-provisioning.mobileconfig's properties may not be altered.
- */
+
public function testGetPropPatch() {
+ $this->expectException(\Sabre\DAV\Exception\Forbidden::class);
+ $this->expectExceptionMessage('apple-provisioning.mobileconfig\'s properties may not be altered.');
+
$propPatch = $this->createMock(PropPatch::class);
$this->node->propPatch($propPatch);