From: Hypolite Petovan Date: Sun, 19 Mar 2023 03:12:30 +0000 (-0400) Subject: Provide corresponding default value for $try_oembed in BBCodeTest->testConvert X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c3cecf3d280cb4a5f4aa1170974d68ba7c8dacf6;p=friendica.git Provide corresponding default value for $try_oembed in BBCodeTest->testConvert - Add documentation about system.remove_multiplicated_lines expected value --- diff --git a/tests/src/Content/Text/BBCodeTest.php b/tests/src/Content/Text/BBCodeTest.php index a7de2388e2..1bf5dfb902 100644 --- a/tests/src/Content/Text/BBCodeTest.php +++ b/tests/src/Content/Text/BBCodeTest.php @@ -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);