1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-10-17 09:46:25 +02:00

Merge branch 'ticket/17555' into ticket/17555-master

This commit is contained in:
Marc Alexander
2025-10-06 17:32:01 +02:00
3 changed files with 37 additions and 4 deletions

View File

@@ -53,7 +53,11 @@ class phpbb_avatar_manager_test extends \phpbb_database_test_case
$phpEx
);
$imagesize = new \FastImageSize\FastImageSize();
$imagesize = $this->getMockBuilder('\FastImageSize\FastImageSize')
->onlyMethods(['getImageSize'])
->getMock();
$imagesize->method('getImageSize')
->willReturn(['width' => 80, 'height' => 80, 'mime' => 'image/jpeg']);
$dispatcher = new phpbb_mock_event_dispatcher();
$phpbb_dispatcher = $dispatcher;