summaryrefslogtreecommitdiffstats
path: root/tests/lib/Avatar/AvatarManagerTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/Avatar/AvatarManagerTest.php')
-rw-r--r--tests/lib/Avatar/AvatarManagerTest.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/lib/Avatar/AvatarManagerTest.php b/tests/lib/Avatar/AvatarManagerTest.php
index 812802f8c5f..5351a1069fc 100644
--- a/tests/lib/Avatar/AvatarManagerTest.php
+++ b/tests/lib/Avatar/AvatarManagerTest.php
@@ -51,7 +51,7 @@ class AvatarManagerTest extends \Test\TestCase {
/** @var AvatarManager | \PHPUnit_Framework_MockObject_MockObject */
private $avatarManager;
- public function setUp(): void {
+ protected function setUp(): void {
parent::setUp();
$this->userManager = $this->createMock(Manager::class);
@@ -69,11 +69,11 @@ class AvatarManagerTest extends \Test\TestCase {
);
}
- /**
- * @expectedException \Exception
- * @expectedExceptionMessage user does not exist
- */
+
public function testGetAvatarInvalidUser() {
+ $this->expectException(\Exception::class);
+ $this->expectExceptionMessage('user does not exist');
+
$this->userManager
->expects($this->once())
->method('get')