mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +00:00
[ticket/12056] Fix "Call to a member function trigger_event() on a non-object".
PHPBB3-12056
This commit is contained in:
parent
d63ac61b19
commit
b41781ed64
1 changed files with 3 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Reference in a new issue