aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2015-05-31 10:49:05 +0200
committerMarc Alexander <admin@m-a-styles.de>2015-05-31 10:49:05 +0200
commitc0972f74ca3c8ce949ecc9e9471755b84a3fe492 (patch)
tree21e898a5744ddfca76100649b9f8b123b8fc1c53
parent073f3e6fdc5af190db85b6cdefd418af4312af9f (diff)
parent6ac37145ec1bb41625c0c6a3875e4392ab6b703b (diff)
downloadforums-c0972f74ca3c8ce949ecc9e9471755b84a3fe492.tar
forums-c0972f74ca3c8ce949ecc9e9471755b84a3fe492.tar.gz
forums-c0972f74ca3c8ce949ecc9e9471755b84a3fe492.tar.bz2
forums-c0972f74ca3c8ce949ecc9e9471755b84a3fe492.tar.xz
forums-c0972f74ca3c8ce949ecc9e9471755b84a3fe492.zip
Merge pull request #3670 from s9e/ticket/8420
[ticket/8420] Emoticon removes space before itself when using preview
-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());
+ }
}