diff options
Diffstat (limited to 'apps/dav/tests/unit/Upload/FutureFileTest.php')
-rw-r--r-- | apps/dav/tests/unit/Upload/FutureFileTest.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/apps/dav/tests/unit/Upload/FutureFileTest.php b/apps/dav/tests/unit/Upload/FutureFileTest.php index 94be4ea66dd..cfe3491d13f 100644 --- a/apps/dav/tests/unit/Upload/FutureFileTest.php +++ b/apps/dav/tests/unit/Upload/FutureFileTest.php @@ -73,18 +73,18 @@ class FutureFileTest extends \Test\TestCase { $f->delete(); } - /** - * @expectedException Sabre\DAV\Exception\Forbidden - */ + public function testPut() { + $this->expectException(\Sabre\DAV\Exception\Forbidden::class); + $f = $this->mockFutureFile(); $f->put(''); } - /** - * @expectedException Sabre\DAV\Exception\Forbidden - */ + public function testSetName() { + $this->expectException(\Sabre\DAV\Exception\Forbidden::class); + $f = $this->mockFutureFile(); $f->setName(''); } |