mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-02 14:57:37 +02:00
[feature/add_events] Re-fix broken test
PHPBB3-9550
This commit is contained in:
@@ -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_ext->register();
|
||||||
$phpbb_class_loader = new phpbb_class_loader('phpbb_', $phpbb_root_path . 'includes/', ".php");
|
$phpbb_class_loader = new phpbb_class_loader('phpbb_', $phpbb_root_path . 'includes/', ".php");
|
||||||
$phpbb_class_loader->register();
|
$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_helpers.php';
|
||||||
require_once 'test_framework/phpbb_test_case.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)
|
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));
|
$this->assertEquals($expected, append_sid($url, $params, $is_amp, $session_id));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user