diff options
Diffstat (limited to 'apps/dav/tests/unit/Avatars/AvatarHomeTest.php')
-rw-r--r-- | apps/dav/tests/unit/Avatars/AvatarHomeTest.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/dav/tests/unit/Avatars/AvatarHomeTest.php b/apps/dav/tests/unit/Avatars/AvatarHomeTest.php index 07eb9670279..4a8d9895dd7 100644 --- a/apps/dav/tests/unit/Avatars/AvatarHomeTest.php +++ b/apps/dav/tests/unit/Avatars/AvatarHomeTest.php @@ -40,17 +40,18 @@ class AvatarHomeTest extends TestCase { /** @var IAvatarManager | \PHPUnit_Framework_MockObject_MockObject */ private $avatarManager; - public function setUp() { + protected function setUp(): void { parent::setUp(); $this->avatarManager = $this->createMock(IAvatarManager::class); $this->home = new AvatarHome(['uri' => 'principals/users/admin'], $this->avatarManager); } /** - * @expectedException \Sabre\DAV\Exception\Forbidden * @dataProvider providesForbiddenMethods */ public function testForbiddenMethods($method) { + $this->expectException(\Sabre\DAV\Exception\Forbidden::class); + $this->home->$method(''); } |