aboutsummaryrefslogtreecommitdiffstats
path: root/tests/functional/posting_test.php
diff options
context:
space:
mode:
authorJoshyPHP <s9e.dev@gmail.com>2015-05-31 10:13:20 +0200
committerJoshyPHP <s9e.dev@gmail.com>2015-05-31 10:13:20 +0200
commit6ac37145ec1bb41625c0c6a3875e4392ab6b703b (patch)
tree21e898a5744ddfca76100649b9f8b123b8fc1c53 /tests/functional/posting_test.php
parent073f3e6fdc5af190db85b6cdefd418af4312af9f (diff)
downloadforums-6ac37145ec1bb41625c0c6a3875e4392ab6b703b.tar
forums-6ac37145ec1bb41625c0c6a3875e4392ab6b703b.tar.gz
forums-6ac37145ec1bb41625c0c6a3875e4392ab6b703b.tar.bz2
forums-6ac37145ec1bb41625c0c6a3875e4392ab6b703b.tar.xz
forums-6ac37145ec1bb41625c0c6a3875e4392ab6b703b.zip
[ticket/8420] Added regression test
PHPBB3-8420
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 8677237772..49f0c1d749 100644
--- a/tests/functional/posting_test.php
+++ b/tests/functional/posting_test.php
@@ -166,4 +166,18 @@ class phpbb_functional_posting_test extends phpbb_functional_test_case
$crawler = self::submit($form);
$this->assertEquals(1, $crawler->filter('.successbox')->count());
}
+
+ public function test_ticket_8420()
+ {
+ $text = '[b][url=http://example.org] :arrow: here[/url][/b]';
+
+ $this->login();
+ $crawler = self::request('GET', 'posting.php?mode=post&f=2');
+ $form = $crawler->selectButton('Preview')->form(array(
+ 'subject' => 'Test subject',
+ 'message' => $text
+ ));
+ $crawler = self::submit($form);
+ $this->assertEquals($text, $crawler->filter('#message')->text());
+ }
}