diff options
author | Joas Schilling <coding@schilljs.com> | 2023-05-02 20:18:25 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2023-05-02 20:18:25 +0200 |
commit | 9db415f2c5caa902f9ec970c4224cc0290039724 (patch) | |
tree | fac1b37d4d074a72a71a7515c0cca0dc357fc97e /tests | |
parent | f0d4af60ea9399574a3fab2df415cf3ff74707c1 (diff) |
fix(tests): Fix "Creation of dynamic property" for PHP 8.2 in tests
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/php/Service/AvatarServiceTest.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/php/Service/AvatarServiceTest.php b/tests/php/Service/AvatarServiceTest.php index ec4e185d8..97cfc80fe 100644 --- a/tests/php/Service/AvatarServiceTest.php +++ b/tests/php/Service/AvatarServiceTest.php @@ -35,6 +35,7 @@ use OCP\IAvatarManager; use OCP\IL10N; use OCP\IURLGenerator; use OCP\Security\ISecureRandom; +use OCP\Server; use PHPUnit\Framework\MockObject\MockObject; use Test\TestCase; @@ -52,6 +53,8 @@ class AvatarServiceTest extends TestCase { private $roomService; /** @var IAvatarManager|MockObject */ private $avatarManager; + /** @var EmojiHelper|MockObject */ + private $emojiHelper; public function setUp(): void { parent::setUp(); @@ -62,7 +65,7 @@ class AvatarServiceTest extends TestCase { $this->random = $this->createMock(ISecureRandom::class); $this->roomService = $this->createMock(RoomService::class); $this->avatarManager = $this->createMock(IAvatarManager::class); - $this->emojiHelper = \OCP\Server::get(EmojiHelper::class); + $this->emojiHelper = Server::get(EmojiHelper::class); $this->service = new AvatarService( $this->appData, $this->l, |