]> git.mxchange.org Git - friendica.git/commitdiff
Provide corresponding default value for $try_oembed in BBCodeTest->testConvert
authorHypolite Petovan <hypolite@mrpetovan.com>
Sun, 19 Mar 2023 03:12:30 +0000 (23:12 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Sun, 19 Mar 2023 03:35:51 +0000 (23:35 -0400)
- Add documentation about system.remove_multiplicated_lines expected value

tests/src/Content/Text/BBCodeTest.php

index a7de2388e2cf5ae5fb5703a2c5d720b66cdc882a..1bf5dfb902b807a4deabff85963f6b629dca2a12 100644 (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);