Provide corresponding default value for $try_oembed in BBCodeTest->testConvert

- Add documentation about system.remove_multiplicated_lines expected value
This commit is contained in:
Hypolite Petovan 2023-03-18 23:12:30 -04:00
parent 67c0c279aa
commit c3cecf3d28
1 changed files with 2 additions and 1 deletions

View File

@ -282,8 +282,9 @@ Karl Marx - Die ursprüngliche Akkumulation
*
* @throws InternalServerErrorException
*/
public function testConvert(string $expectedHtml, string $text, $try_oembed = false, int $simpleHtml = 0, bool $forPlaintext = false)
public function testConvert(string $expectedHtml, string $text, bool $try_oembed = true, int $simpleHtml = BBCode::INTERNAL, bool $forPlaintext = false)
{
// This assumes system.remove_multiplicated_lines = false
$actual = BBCode::convert($text, $try_oembed, $simpleHtml, $forPlaintext);
self::assertEquals($expectedHtml, $actual);