Skip to content

Commit 88bc96d

Browse files
committed
Fix tests
1 parent db1d0db commit 88bc96d

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

tests/controller/admin_controller_base.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,9 @@ protected function setUp(): void
5252
{
5353
parent::setUp();
5454

55-
global $language, $user, $phpbb_root_path, $phpEx;
55+
global $language, $user, $phpbb_root_path, $phpEx, $phpbb_dispatcher;
56+
57+
$phpbb_dispatcher = new \phpbb_mock_event_dispatcher();
5658

5759
$cache = new \phpbb_mock_cache();
5860
$this->db = $this->new_dbal();
@@ -79,10 +81,10 @@ protected function setUp(): void
7981
->getMock();
8082
$group_helper
8183
->method('get_name')
82-
->will(self::returnArgument(0));
84+
->willReturnArgument(0);
8385
$group_helper
8486
->method('get_name_string')
85-
->will(self::returnArgument(2));
87+
->willReturnArgument(2);
8688

8789
$this->admin_controller = new \phpbb\autogroups\controller\admin_controller(
8890
$cache,

0 commit comments

Comments
 (0)