mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
[ticket/13906] Added test
PHPBB3-13906
This commit is contained in:
parent
eb227977d2
commit
d37c995f4b
1 changed files with 22 additions and 0 deletions
|
@ -180,4 +180,26 @@ class phpbb_functional_posting_test extends phpbb_functional_test_case
|
||||||
$crawler = self::submit($form);
|
$crawler = self::submit($form);
|
||||||
$this->assertEquals($text, $crawler->filter('#message')->text());
|
$this->assertEquals($text, $crawler->filter('#message')->text());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function test_ticket_13906()
|
||||||
|
{
|
||||||
|
$sql = 'UPDATE ' . USERS_TABLE . "
|
||||||
|
SET user_sig = '[b:2u8sdcwb]My signature[/b:2u8sdcwb]',
|
||||||
|
user_sig_bbcode_uid = '2u8sdcwb',
|
||||||
|
user_sig_bbcode_bitfield = 'QA=='
|
||||||
|
WHERE user_id = 2";
|
||||||
|
$this->get_db()->sql_query($sql);
|
||||||
|
|
||||||
|
$this->login();
|
||||||
|
$crawler = self::request('GET', 'posting.php?mode=post&f=2');
|
||||||
|
$form = $crawler->selectButton('Preview')->form(array(
|
||||||
|
'subject' => 'Test subject',
|
||||||
|
'message' => 'My post',
|
||||||
|
));
|
||||||
|
$crawler = self::submit($form);
|
||||||
|
$this->assertContains(
|
||||||
|
'<span style="font-weight: bold">My signature</span>',
|
||||||
|
$crawler->filter('#preview .signature')->html()
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue