diff --git a/mod/wiki/tests/wikiparser_test.php b/mod/wiki/tests/wikiparser_test.php index b09cef64788..8f74d127de7 100644 --- a/mod/wiki/tests/wikiparser_test.php +++ b/mod/wiki/tests/wikiparser_test.php @@ -89,10 +89,10 @@ class mod_wiki_wikiparser_test extends basic_testcase { // Test section name using HTML entities. $input = '

Code & Test

'; - $output = '

Code & Test[edit]

' . "\n"; $toc = '

Table of contents

1. Code & Test1. Code & Test [edit]

'; $section = wiki_parser_proxy::get_section($input, 'html', 'Code & Test'); $actual = wiki_parser_proxy::parse($input, 'html'); @@ -102,10 +102,10 @@ class mod_wiki_wikiparser_test extends basic_testcase { // Test section name using non-ASCII characters. $input = '

Another áéíóúç€ test

'; - $output = '

Another áéíóúç€ testAnother áéíóúç€ test [edit]

' . "\n"; $toc = '

Table of contents

1. Another áéíóúç€ test1. Another áéíóúç€ test [edit]

'; $section = wiki_parser_proxy::get_section($input, 'html', 'Another áéíóúç€ test'); $actual = wiki_parser_proxy::parse($input, 'html'); @@ -115,10 +115,10 @@ class mod_wiki_wikiparser_test extends basic_testcase { // Test section name with a URL. $input = '

Another http://moodle.org test

'; - $output = '

Another http://moodle.org testAnother http://moodle.org test [edit]

' . "\n"; $toc = '

Table of contents

1. Another http://moodle.org test1. Another http://moodle.org test [edit]

'; $section = wiki_parser_proxy::get_section($input, 'html', 'Another http://moodle.org test'); $actual = wiki_parser_proxy::parse($input, 'html', array( @@ -133,10 +133,10 @@ class mod_wiki_wikiparser_test extends basic_testcase { // Test section name using HTML entities. $input = '= Code & Test ='; - $output = '

Code & Test[edit]

' . "\n"; $toc = '

Table of contents

1. Code & Test1. Code & Test [edit]

'; $section = wiki_parser_proxy::get_section($input, 'creole', 'Code & Test'); $actual = wiki_parser_proxy::parse($input, 'creole'); @@ -146,10 +146,10 @@ class mod_wiki_wikiparser_test extends basic_testcase { // Test section name using non-ASCII characters. $input = '= Another áéíóúç€ test ='; - $output = '

Another áéíóúç€ testAnother áéíóúç€ test [edit]

' . "\n"; $toc = '

Table of contents

1. Another áéíóúç€ test1. Another áéíóúç€ test [edit]

'; $section = wiki_parser_proxy::get_section($input, 'creole', 'Another áéíóúç€ test'); $actual = wiki_parser_proxy::parse($input, 'creole'); @@ -159,10 +159,10 @@ class mod_wiki_wikiparser_test extends basic_testcase { // Test section name with a URL, creole does not support linking links in a heading. $input = '= Another http://moodle.org test ='; - $output = '

Another http://moodle.org testAnother http://moodle.org test [edit]

' . "\n"; $toc = '

Table of contents

1. Another http://moodle.org test1. Another http://moodle.org test [edit]

'; $section = wiki_parser_proxy::get_section($input, 'creole', 'Another http://moodle.org test'); $actual = wiki_parser_proxy::parse($input, 'creole'); @@ -175,10 +175,10 @@ class mod_wiki_wikiparser_test extends basic_testcase { // Test section name using HTML entities. $input = '= Code & Test ='; - $output = '

Code & Test[edit]

' . "\n"; $toc = '

Table of contents

1. Code & Test1. Code & Test [edit]

'; $section = wiki_parser_proxy::get_section($input, 'nwiki', 'Code & Test'); $actual = wiki_parser_proxy::parse($input, 'nwiki'); @@ -188,10 +188,10 @@ class mod_wiki_wikiparser_test extends basic_testcase { // Test section name using non-ASCII characters. $input = '= Another áéíóúç€ test ='; - $output = '

Another áéíóúç€ testAnother áéíóúç€ test [edit]

' . "\n"; $toc = '

Table of contents

1. Another áéíóúç€ test1. Another áéíóúç€ test [edit]

'; $section = wiki_parser_proxy::get_section($input, 'nwiki', 'Another áéíóúç€ test'); $actual = wiki_parser_proxy::parse($input, 'nwiki'); @@ -201,10 +201,10 @@ class mod_wiki_wikiparser_test extends basic_testcase { // Test section name with a URL, nwiki does not support linking links in a heading. $input = '= Another http://moodle.org test ='; - $output = '

Another http://moodle.org testAnother http://moodle.org test [edit]

' . "\n"; $toc = '

Table of contents

1. Another http://moodle.org test1. Another http://moodle.org test [edit]

'; $section = wiki_parser_proxy::get_section($input, 'nwiki', 'Another http://moodle.org test'); $actual = wiki_parser_proxy::parse($input, 'nwiki');