1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-06 00:37:42 +02:00

[ticket/12056] Fix "Call to a member function trigger_event() on a non-object".

PHPBB3-12056
This commit is contained in:
Andreas Fischer
2013-12-04 13:51:42 +01:00
parent d63ac61b19
commit b41781ed64

View File

@@ -16,7 +16,7 @@ class phpbb_text_processing_generate_text_for_display_test extends phpbb_test_ca
{
public function setUp()
{
global $cache, $user;
global $cache, $user, $phpbb_dispatcher;
parent::setUp();
@@ -24,6 +24,8 @@ class phpbb_text_processing_generate_text_for_display_test extends phpbb_test_ca
$user = new phpbb_mock_user;
$user->optionset('viewcensors', false);
$phpbb_dispatcher = new phpbb_mock_event_dispatcher();
}
public function test_empty_string()