Fix tests

This commit is contained in:
Michael 2023-03-17 06:55:38 +00:00
parent 1146fca2cd
commit eee65b31fd
2 changed files with 3 additions and 3 deletions

View File

@ -146,7 +146,7 @@ class BBCodeTest extends FixtureTest
public function testAutoLinking(string $data, bool $assertHTML)
{
$output = BBCode::convert($data);
$assert = $this->HTMLPurifier->purify('<a href="' . $data . '" target="_blank" rel="noopener noreferrer">' . $data . '</a>');
$assert = $this->HTMLPurifier->purify('<p><a href="' . $data . '" target="_blank" rel="noopener noreferrer">' . $data . '</a></p>');
if ($assertHTML) {
self::assertEquals($assert, $output);
} else {
@ -278,7 +278,7 @@ Karl Marx - Die ursprüngliche Akkumulation
{
$actual = BBCode::convert($text, $try_oembed, $simpleHtml, $forPlaintext);
self::assertEquals($expectedHtml, $actual);
self::assertEquals('<p>' . $expectedHtml . '</p>', $actual);
}
public function dataBBCodesToMarkdown()

View File

@ -67,7 +67,7 @@ class DirectMessageTest extends FixtureTest
->toArray();
self::assertEquals('item_title', $directMessage['title']);
self::assertEquals('<strong>item_body</strong>', $directMessage['text']);
self::assertEquals('<p><strong>item_body</strong></p>', $directMessage['text']);
}
/**