1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 14:00:31 +02:00

[ticket/11768] Renamed service vars

The name of the variable that holds the service instance is now consistent
across events.

PHPBB3-11768
This commit is contained in:
JoshyPHP
2015-03-27 01:29:09 +01:00
parent 3e04e643df
commit d8e7e11ee3
4 changed files with 26 additions and 32 deletions

View File

@@ -200,9 +200,7 @@ class phpbb_textformatter_s9e_parser_test extends phpbb_test_case
public function setup_event_callback($vars)
{
return isset($vars['parser'])
&& $vars['parser'] instanceof \s9e\TextFormatter\Parser
&& isset($vars['self'])
&& $vars['self'] instanceof \phpbb\textformatter\s9e\parser
&& $vars['parser'] instanceof \phpbb\textformatter\s9e\parser
&& isset($vars['user'])
&& $vars['user'] instanceof \phpbb\user;
}
@@ -247,16 +245,16 @@ class phpbb_textformatter_s9e_parser_test extends phpbb_test_case
public function parse_before_event_callback($vars)
{
return isset($vars['self'])
&& $vars['self'] instanceof \phpbb\textformatter\s9e\parser
return isset($vars['parser'])
&& $vars['parser'] instanceof \phpbb\textformatter\s9e\parser
&& isset($vars['text'])
&& $vars['text'] === '...';
}
public function parse_after_event_callback($vars)
{
return isset($vars['self'])
&& $vars['self'] instanceof \phpbb\textformatter\s9e\parser
return isset($vars['parser'])
&& $vars['parser'] instanceof \phpbb\textformatter\s9e\parser
&& isset($vars['xml'])
&& $vars['xml'] === '<t>...</t>';
}