X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=tests%2Fsrc%2FContent%2FText%2FBBCodeTest.php;h=74d34f5a5e836064cc001ac6a892a6eace2b48d7;hb=7e6ba0b4d271735bbf7474fb75a7cf43b787b678;hp=b7328d67d76c1e8e3938ce6cf1186ab7f629e689;hpb=b7288b2bfd170bf5ba0c418a7617067eb6e65b9a;p=friendica.git diff --git a/tests/src/Content/Text/BBCodeTest.php b/tests/src/Content/Text/BBCodeTest.php index b7328d67d7..74d34f5a5e 100644 --- a/tests/src/Content/Text/BBCodeTest.php +++ b/tests/src/Content/Text/BBCodeTest.php @@ -267,13 +267,17 @@ Karl Marx - Die ursprüngliche Akkumulation 'text' => '[h1]Header[/h1]Some Chapter', ], 'bug-12842-ul-newlines' => [ - 'expectedHTML' => '

This is:

', + 'expectedHTML' => '

This is:

', 'text' => "This is:\r\n[ul]\r\n[*]some\r\n[*]amazing\r\n[*]list\r\n[/ul]", ], 'bug-12842-ol-newlines' => [ - 'expectedHTML' => '

This is:

  1. some
  2. amazing
  3. list
', + 'expectedHTML' => '

This is:

  1. some
  2. amazing
  3. list
', 'text' => "This is:\r\n[ol]\r\n[*]some\r\n[*]amazing\r\n[*]list\r\n[/ol]", ], + 'task-12917-tabs-between-linebreaks' => [ + 'expectedHTML' => '

Paragraph

New Paragraph

', + 'text' => "Paragraph\n\t\nNew Paragraph", + ], ]; } @@ -313,6 +317,14 @@ Karl Marx - Die ursprüngliche Akkumulation 'expected' => '&`&`', 'text' => '&[code]&[/code]', ], + 'bug-12701-quotes' => [ + 'expected' => '[![abc"fgh](https://domain.tld/photo/86912721086415cdc8e0a03226831581-1.png)](https://domain.tld/photos/user/image/86912721086415cdc8e0a03226831581)', + 'text' => '[url=https://domain.tld/photos/user/image/86912721086415cdc8e0a03226831581][img=https://domain.tld/photo/86912721086415cdc8e0a03226831581-1.png]abc"fgh[/img][/url]' + ], + 'bug-12701-no-quotes' => [ + 'expected' => '[![abcfgh](https://domain.tld/photo/86912721086415cdc8e0a03226831581-1.png "abcfgh")](https://domain.tld/photos/user/image/86912721086415cdc8e0a03226831581)', + 'text' => '[url=https://domain.tld/photos/user/image/86912721086415cdc8e0a03226831581][img=https://domain.tld/photo/86912721086415cdc8e0a03226831581-1.png]abcfgh[/img][/url]' + ], ]; } @@ -327,7 +339,7 @@ Karl Marx - Die ursprüngliche Akkumulation * * @throws InternalServerErrorException */ - public function testToMarkdown(string $expected, string $text, $for_diaspora = false) + public function testToMarkdown(string $expected, string $text, $for_diaspora = true) { $actual = BBCode::toMarkdown($text, $for_diaspora);