aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorTristan Darricau <tristan.darricau@sensiolabs.com>2015-06-29 11:31:29 +0200
committerTristan Darricau <tristan.darricau@sensiolabs.com>2015-06-29 11:31:29 +0200
commit385a0bb790e82776610fd62a5ad433ea10e93b42 (patch)
tree063282f04b7f658fb4f32b39f2195a743b0cc280 /tests
parentde14c3563b778f49c5fc97f63b223ac7b0e8f19f (diff)
parent353b3b4cfd7133ea0cef4a7fdb34d0451b16a0dd (diff)
downloadforums-385a0bb790e82776610fd62a5ad433ea10e93b42.tar
forums-385a0bb790e82776610fd62a5ad433ea10e93b42.tar.gz
forums-385a0bb790e82776610fd62a5ad433ea10e93b42.tar.bz2
forums-385a0bb790e82776610fd62a5ad433ea10e93b42.tar.xz
forums-385a0bb790e82776610fd62a5ad433ea10e93b42.zip
Merge pull request #3730 from s9e/ticket/13970
[ticket/13970] Save the value of the optional [code] parameter
Diffstat (limited to 'tests')
-rw-r--r--tests/text_formatter/s9e/default_formatting_test.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/text_formatter/s9e/default_formatting_test.php b/tests/text_formatter/s9e/default_formatting_test.php
index 67921d5b1e..4829e9bbc8 100644
--- a/tests/text_formatter/s9e/default_formatting_test.php
+++ b/tests/text_formatter/s9e/default_formatting_test.php
@@ -15,6 +15,17 @@ require_once __DIR__ . '/../../../phpBB/includes/functions_content.php';
class phpbb_textformatter_s9e_default_formatting_test extends phpbb_test_case
{
+ public function test_bbcode_code_lang_is_saved()
+ {
+ $container = $this->get_test_case_helpers()->set_s9e_services();
+ $parser = $container->get('text_formatter.parser');
+
+ $original = '[code]...[/code][code=php]...[/code]';
+ $expected = '<r><CODE><s>[code]</s>...<e>[/code]</e></CODE><CODE lang="php"><s>[code=php]</s>...<e>[/code]</e></CODE></r>';
+
+ $this->assertXmlStringEqualsXmlString($expected, $parser->parse($original));
+ }
+
/**
* @dataProvider get_default_formatting_tests
*/