mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[feature/add_events] Re-fix broken test
PHPBB3-9550
This commit is contained in:
parent
efe9b1010a
commit
008cf967ab
2 changed files with 3 additions and 1 deletions
|
@ -22,7 +22,6 @@ $phpbb_class_loader_ext = new phpbb_class_loader('phpbb_ext_', $phpbb_root_path
|
|||
$phpbb_class_loader_ext->register();
|
||||
$phpbb_class_loader = new phpbb_class_loader('phpbb_', $phpbb_root_path . 'includes/', ".php");
|
||||
$phpbb_class_loader->register();
|
||||
$phpbb_dispatcher = new phpbb_event_dispatcher();
|
||||
|
||||
require_once 'test_framework/phpbb_test_case_helpers.php';
|
||||
require_once 'test_framework/phpbb_test_case.php';
|
||||
|
|
|
@ -45,6 +45,9 @@ class phpbb_session_append_sid_test extends phpbb_test_case
|
|||
*/
|
||||
public function test_append_sid($url, $params, $is_amp, $session_id, $expected, $description)
|
||||
{
|
||||
global $phpbb_dispatcher;
|
||||
|
||||
$phpbb_dispatcher = new phpbb_mock_event_dispatcher;
|
||||
$this->assertEquals($expected, append_sid($url, $params, $is_amp, $session_id));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue