aboutsummaryrefslogtreecommitdiffstats
path: root/tests/text_formatter
diff options
context:
space:
mode:
authorJoshyPHP <s9e.dev@gmail.com>2015-07-13 16:08:57 +0200
committerJoshyPHP <s9e.dev@gmail.com>2015-07-13 16:08:57 +0200
commit675cf5e897944318f9666b088a5053f339fe1032 (patch)
tree542c7013e19f3c21382b7e48e21a8ba119e98873 /tests/text_formatter
parent8df16ed92c65228593167d3f187a05ccf85f5a9d (diff)
downloadforums-675cf5e897944318f9666b088a5053f339fe1032.tar
forums-675cf5e897944318f9666b088a5053f339fe1032.tar.gz
forums-675cf5e897944318f9666b088a5053f339fe1032.tar.bz2
forums-675cf5e897944318f9666b088a5053f339fe1032.tar.xz
forums-675cf5e897944318f9666b088a5053f339fe1032.zip
[ticket/14008] Do not add a user_id value to quotes from guests
PHPBB3-14008
Diffstat (limited to 'tests/text_formatter')
-rw-r--r--tests/text_formatter/s9e/utils_test.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/text_formatter/s9e/utils_test.php b/tests/text_formatter/s9e/utils_test.php
index 1c03783792..dade259790 100644
--- a/tests/text_formatter/s9e/utils_test.php
+++ b/tests/text_formatter/s9e/utils_test.php
@@ -177,6 +177,15 @@ class phpbb_textformatter_s9e_utils_test extends phpbb_test_case
),
array(
'...',
+ array(
+ 'author' => 'user',
+ 'post_id' => 123,
+ 'user_id' => ANONYMOUS
+ ),
+ '[quote=user post_id=123]...[/quote]',
+ ),
+ array(
+ '...',
array('author' => ' '),
'[quote=" "]...[/quote]',
),