mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
Merge pull request #3670 from s9e/ticket/8420
[ticket/8420] Emoticon removes space before itself when using preview
This commit is contained in:
commit
c0972f74ca
1 changed files with 14 additions and 0 deletions
|
@ -166,4 +166,18 @@ class phpbb_functional_posting_test extends phpbb_functional_test_case
|
||||||
$crawler = self::submit($form);
|
$crawler = self::submit($form);
|
||||||
$this->assertEquals(1, $crawler->filter('.successbox')->count());
|
$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());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue