aboutsummaryrefslogtreecommitdiffstats
path: root/tests/text_processing
diff options
context:
space:
mode:
authorJoshyPHP <s9e.dev@gmail.com>2017-01-14 14:27:38 +0100
committerJoshyPHP <s9e.dev@gmail.com>2017-01-14 14:27:38 +0100
commit15315ac87a68834e2d560acf62756f628a26da45 (patch)
treec2db5de0b12257fe6fb1d57f9189ebf73bf43d19 /tests/text_processing
parent26c6cb819eea5fe67d5df7b0af3f580848b953b6 (diff)
downloadforums-15315ac87a68834e2d560acf62756f628a26da45.tar
forums-15315ac87a68834e2d560acf62756f628a26da45.tar.gz
forums-15315ac87a68834e2d560acf62756f628a26da45.tar.bz2
forums-15315ac87a68834e2d560acf62756f628a26da45.tar.xz
forums-15315ac87a68834e2d560acf62756f628a26da45.zip
[ticket/15008] Disable emoji when smilies are disabled
Will effectively disable emoji shortname and won't replace emoji with images but will not prevent a browser or OS from displaying emoji as images. PHPBB3-15008
Diffstat (limited to 'tests/text_processing')
-rw-r--r--tests/text_processing/tickets_data/PHPBB3-15008.before.php18
-rw-r--r--tests/text_processing/tickets_data/PHPBB3-15008.html1
-rw-r--r--tests/text_processing/tickets_data/PHPBB3-15008.txt1
3 files changed, 20 insertions, 0 deletions
diff --git a/tests/text_processing/tickets_data/PHPBB3-15008.before.php b/tests/text_processing/tickets_data/PHPBB3-15008.before.php
new file mode 100644
index 0000000000..a3243e74cd
--- /dev/null
+++ b/tests/text_processing/tickets_data/PHPBB3-15008.before.php
@@ -0,0 +1,18 @@
+<?php
+/**
+*
+* This file is part of the phpBB Forum Software package.
+*
+* @copyright (c) phpBB Limited <https://www.phpbb.com>
+* @license GNU General Public License, version 2 (GPL-2.0)
+*
+* For full copyright and license information, please see
+* the docs/CREDITS.txt file.
+*
+*/
+
+function before_assert_phpbb3_15008($vars)
+{
+ extract($vars);
+ $parser->disable_smilies();
+}
diff --git a/tests/text_processing/tickets_data/PHPBB3-15008.html b/tests/text_processing/tickets_data/PHPBB3-15008.html
new file mode 100644
index 0000000000..7642eb63ee
--- /dev/null
+++ b/tests/text_processing/tickets_data/PHPBB3-15008.html
@@ -0,0 +1 @@
+No smilies :) or shortnames :strawberry: \ No newline at end of file
diff --git a/tests/text_processing/tickets_data/PHPBB3-15008.txt b/tests/text_processing/tickets_data/PHPBB3-15008.txt
new file mode 100644
index 0000000000..7642eb63ee
--- /dev/null
+++ b/tests/text_processing/tickets_data/PHPBB3-15008.txt
@@ -0,0 +1 @@
+No smilies :) or shortnames :strawberry: \ No newline at end of file