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

[ticket/8420] Added regression test

PHPBB3-8420
This commit is contained in:
JoshyPHP 2015-05-31 10:13:20 +02:00
parent 073f3e6fdc
commit 6ac37145ec

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