aboutsummaryrefslogtreecommitdiffstats
path: root/tests/functional
diff options
context:
space:
mode:
author3D-I <480857+3D-I@users.noreply.github.com>2019-09-11 03:44:12 +0200
committer3D-I <480857+3D-I@users.noreply.github.com>2019-09-11 03:44:36 +0200
commit41728f2258c409480b9c3d4c1753b6eb1b47c677 (patch)
tree196c608703ba4319a6cdcabb1b834b14b10698e5 /tests/functional
parentbcac30c8bbc1839fd20ef612faccaffc5df74464 (diff)
downloadforums-41728f2258c409480b9c3d4c1753b6eb1b47c677.tar
forums-41728f2258c409480b9c3d4c1753b6eb1b47c677.tar.gz
forums-41728f2258c409480b9c3d4c1753b6eb1b47c677.tar.bz2
forums-41728f2258c409480b9c3d4c1753b6eb1b47c677.tar.xz
forums-41728f2258c409480b9c3d4c1753b6eb1b47c677.zip
[ticket/16153] Functional test 2
PHPBB3-16153
Diffstat (limited to 'tests/functional')
-rw-r--r--tests/functional/posting_test.php11
1 files changed, 4 insertions, 7 deletions
diff --git a/tests/functional/posting_test.php b/tests/functional/posting_test.php
index 298bb40a90..e4b23c3215 100644
--- a/tests/functional/posting_test.php
+++ b/tests/functional/posting_test.php
@@ -41,13 +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.'
- );
+ $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()