1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-02-25 04:23:38 +01:00

Merge pull request #3670 from s9e/ticket/8420

[ticket/8420] Emoticon removes space before itself when using preview
This commit is contained in:
Marc Alexander 2015-05-31 10:49:05 +02:00
commit c0972f74ca

View File

@ -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());
}
}