aboutsummaryrefslogtreecommitdiffstats
path: root/tests/functional
diff options
context:
space:
mode:
authorJoshyPHP <s9e.dev@gmail.com>2015-06-02 12:37:36 +0200
committerJoshyPHP <s9e.dev@gmail.com>2015-06-02 12:37:36 +0200
commitd37c995f4be23ca058cec59c44c92ab54015b11d (patch)
tree33d9ce4f76a0bd6d2840e80a8256b2122fa34c58 /tests/functional
parenteb227977d27839bb0e2f1826084e00b667659e25 (diff)
downloadforums-d37c995f4be23ca058cec59c44c92ab54015b11d.tar
forums-d37c995f4be23ca058cec59c44c92ab54015b11d.tar.gz
forums-d37c995f4be23ca058cec59c44c92ab54015b11d.tar.bz2
forums-d37c995f4be23ca058cec59c44c92ab54015b11d.tar.xz
forums-d37c995f4be23ca058cec59c44c92ab54015b11d.zip
[ticket/13906] Added test
PHPBB3-13906
Diffstat (limited to 'tests/functional')
-rw-r--r--tests/functional/posting_test.php22
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/functional/posting_test.php b/tests/functional/posting_test.php
index 49f0c1d749..c107b78384 100644
--- a/tests/functional/posting_test.php
+++ b/tests/functional/posting_test.php
@@ -180,4 +180,26 @@ class phpbb_functional_posting_test extends phpbb_functional_test_case
$crawler = self::submit($form);
$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()
+ );
+ }
}