From eee65b31fd67067d13a2cff068b8c38fba145066 Mon Sep 17 00:00:00 2001 From: Michael Date: Fri, 17 Mar 2023 06:55:38 +0000 Subject: [PATCH] Fix tests --- tests/src/Content/Text/BBCodeTest.php | 4 ++-- tests/src/Factory/Api/Twitter/DirectMessageTest.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/src/Content/Text/BBCodeTest.php b/tests/src/Content/Text/BBCodeTest.php index 4c1292344c..073a441f04 100644 --- a/tests/src/Content/Text/BBCodeTest.php +++ b/tests/src/Content/Text/BBCodeTest.php @@ -146,7 +146,7 @@ class BBCodeTest extends FixtureTest public function testAutoLinking(string $data, bool $assertHTML) { $output = BBCode::convert($data); - $assert = $this->HTMLPurifier->purify('' . $data . ''); + $assert = $this->HTMLPurifier->purify('

' . $data . '

'); 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('

' . $expectedHtml . '

', $actual); } public function dataBBCodesToMarkdown() diff --git a/tests/src/Factory/Api/Twitter/DirectMessageTest.php b/tests/src/Factory/Api/Twitter/DirectMessageTest.php index 216c4051fa..62a9c43e59 100644 --- a/tests/src/Factory/Api/Twitter/DirectMessageTest.php +++ b/tests/src/Factory/Api/Twitter/DirectMessageTest.php @@ -67,7 +67,7 @@ class DirectMessageTest extends FixtureTest ->toArray(); self::assertEquals('item_title', $directMessage['title']); - self::assertEquals('item_body', $directMessage['text']); + self::assertEquals('

item_body

', $directMessage['text']); } /** -- 2.39.5