diff options
author | Marc Alexander <admin@m-a-styles.de> | 2019-11-01 22:12:24 +0100 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2019-11-01 22:12:24 +0100 |
commit | 51f0c16b5f14490c286d5484756fd075f2dc207a (patch) | |
tree | 0d53b73f38d17c7884e883d9a53177ffa98bcff0 /tests/functional | |
parent | e95e387188b050c163edcce3141c957d259810c9 (diff) | |
parent | ff25d0a5084e5e79bf7cc9faefd0dfdeb0ef5705 (diff) | |
download | forums-51f0c16b5f14490c286d5484756fd075f2dc207a.tar forums-51f0c16b5f14490c286d5484756fd075f2dc207a.tar.gz forums-51f0c16b5f14490c286d5484756fd075f2dc207a.tar.bz2 forums-51f0c16b5f14490c286d5484756fd075f2dc207a.tar.xz forums-51f0c16b5f14490c286d5484756fd075f2dc207a.zip |
Merge pull request #5685 from 3D-I/ticket/16153
[ticket/16153] Enable Emojis and rich text in Topic title
Diffstat (limited to 'tests/functional')
-rw-r--r-- | tests/functional/posting_test.php | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/tests/functional/posting_test.php b/tests/functional/posting_test.php index 7150f20a9d..49447e1133 100644 --- a/tests/functional/posting_test.php +++ b/tests/functional/posting_test.php @@ -41,15 +41,10 @@ class phpbb_functional_posting_test extends phpbb_functional_test_case { $this->login(); - $this->add_lang('posting'); - - self::create_post(2, - 1, - "Unsupported: \xF0\x9F\x88\xB3 \xF0\x9F\x9A\xB6", - 'This is a test with emoji characters in the topic title.', - array(), - 'Your subject contains the following unsupported characters' - ); + $post = $this->create_topic(2, "Test Topic \xF0\x9F\xA4\x94 3\xF0\x9D\x94\xBB\xF0\x9D\x95\x9A", 'This is a test with emoji character in the topic title.'); + $this->create_post(2, $post['topic_id'], "Re: Test Topic 1 \xF0\x9F\xA4\x94 3\xF0\x9D\x94\xBB\xF0\x9D\x95\x9A", 'This is a test with emoji characters in the topic title.'); + $crawler = self::request('GET', "viewtopic.php?t={$post['topic_id']}&sid={$this->sid}"); + $this->assertContains("\xF0\x9F\xA4\x94 3\xF0\x9D\x94\xBB\xF0\x9D\x95\x9A", $crawler->text()); } public function test_supported_unicode_characters() |