aboutsummaryrefslogtreecommitdiffstats
path: root/tests/functional/posting_test.php
diff options
context:
space:
mode:
authorJoshyPHP <s9e.dev@gmail.com>2015-05-17 20:15:06 +0200
committerJoshyPHP <s9e.dev@gmail.com>2015-05-25 21:33:17 +0200
commit8a077e0e943d87ee1d26b0501f0b9bcc472ab904 (patch)
treefb99c7d9752338aca49c322428b5d1eab3fb2503 /tests/functional/posting_test.php
parent633740719218b72bac45bbcdff64def8da483851 (diff)
downloadforums-8a077e0e943d87ee1d26b0501f0b9bcc472ab904.tar
forums-8a077e0e943d87ee1d26b0501f0b9bcc472ab904.tar.gz
forums-8a077e0e943d87ee1d26b0501f0b9bcc472ab904.tar.bz2
forums-8a077e0e943d87ee1d26b0501f0b9bcc472ab904.tar.xz
forums-8a077e0e943d87ee1d26b0501f0b9bcc472ab904.zip
[ticket/13847] Move quote generation to text_formatter.utils
PHPBB3-13847
Diffstat (limited to 'tests/functional/posting_test.php')
-rw-r--r--tests/functional/posting_test.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/functional/posting_test.php b/tests/functional/posting_test.php
index 5c083aef37..8677237772 100644
--- a/tests/functional/posting_test.php
+++ b/tests/functional/posting_test.php
@@ -72,6 +72,20 @@ class phpbb_functional_posting_test extends phpbb_functional_test_case
$this->assertContains('&#128512;', $crawler->text());
}
+ public function test_quote()
+ {
+ $text = 'Test post </textarea>"\' &&amp;amp;';
+ $expected = '[quote="admin"]' . $text . '[/quote]';
+
+ $this->login();
+ $topic = $this->create_topic(2, 'Test Topic 1', 'Test topic');
+ $post = $this->create_post(2, $topic['topic_id'], 'Re: Test Topic 1', $text);
+
+ $crawler = self::request('GET', "posting.php?mode=quote&f=2&t={$post['topic_id']}&p={$post['post_id']}&sid={$this->sid}");
+
+ $this->assertContains($expected, $crawler->filter('textarea#message')->text());
+ }
+
/**
* @testdox max_quote_depth is applied to the text populating the posting form
*/