aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJoshyPHP <s9e.dev@gmail.com>2015-05-30 22:17:14 +0200
committerJoshyPHP <s9e.dev@gmail.com>2015-05-30 22:17:14 +0200
commit2f0d11ba3c28f27e535988de2a8d08f7b17aef92 (patch)
tree6f420430011a90e64d73ff858182206469f3714c /tests
parent073f3e6fdc5af190db85b6cdefd418af4312af9f (diff)
downloadforums-2f0d11ba3c28f27e535988de2a8d08f7b17aef92.tar
forums-2f0d11ba3c28f27e535988de2a8d08f7b17aef92.tar.gz
forums-2f0d11ba3c28f27e535988de2a8d08f7b17aef92.tar.bz2
forums-2f0d11ba3c28f27e535988de2a8d08f7b17aef92.tar.xz
forums-2f0d11ba3c28f27e535988de2a8d08f7b17aef92.zip
[ticket/13901] Add more whitespace to long quotes for readability
PHPBB3-13901
Diffstat (limited to 'tests')
-rw-r--r--tests/text_formatter/s9e/default_formatting_test.php4
-rw-r--r--tests/text_formatter/s9e/utils_test.php10
2 files changed, 14 insertions, 0 deletions
diff --git a/tests/text_formatter/s9e/default_formatting_test.php b/tests/text_formatter/s9e/default_formatting_test.php
index 2aa15146aa..67921d5b1e 100644
--- a/tests/text_formatter/s9e/default_formatting_test.php
+++ b/tests/text_formatter/s9e/default_formatting_test.php
@@ -221,6 +221,10 @@ class phpbb_textformatter_s9e_default_formatting_test extends phpbb_test_case
'[quote="http://example.org"]...[/quote]',
'<blockquote><div><cite><a href="http://example.org" class="postlink">http://example.org</a> wrote:</cite>...</div></blockquote>'
),
+ array(
+ "[quote]\nThis is a long quote that is definitely going to exceed 80 characters\n[/quote]\n\nFollowed by a reply",
+ "<blockquote class=\"uncited\"><div>\nThis is a long quote that is definitely going to exceed 80 characters\n</div></blockquote>\n\nFollowed by a reply"
+ ),
);
}
}
diff --git a/tests/text_formatter/s9e/utils_test.php b/tests/text_formatter/s9e/utils_test.php
index 555f29cb38..d40d450f5a 100644
--- a/tests/text_formatter/s9e/utils_test.php
+++ b/tests/text_formatter/s9e/utils_test.php
@@ -171,6 +171,16 @@ class phpbb_textformatter_s9e_utils_test extends phpbb_test_case
),
'[quote="user" post_id="123" url="http://example.org"]...[/quote]',
),
+ array(
+ 'This is a long quote that is definitely going to exceed 80 characters',
+ array(),
+ "[quote]\nThis is a long quote that is definitely going to exceed 80 characters\n[/quote]",
+ ),
+ array(
+ ' This is a short quote on its own line ',
+ array(),
+ '[quote]This is a short quote on its own line[/quote]',
+ ),
);
}