From 10e8c5594d54e8e1e4014b02372e4ffc6a3ab23a Mon Sep 17 00:00:00 2001 From: Philipp Date: Mon, 24 May 2021 13:47:02 +0200 Subject: [PATCH] Fix API tests --- tests/legacy/ApiTest.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/tests/legacy/ApiTest.php b/tests/legacy/ApiTest.php index 837b7409b..4a1839f8c 100644 --- a/tests/legacy/ApiTest.php +++ b/tests/legacy/ApiTest.php @@ -2266,6 +2266,7 @@ class ApiTest extends FixtureTest [ 'network' => 'feed', 'title' => 'item_title', + 'uri-id' => 1, // We need a long string to test that it is correctly cut 'body' => 'perspiciatis impedit voluptatem quis molestiae ea qui ' . 'reiciendis dolorum aut ducimus sunt consequatur inventore dolor ' . @@ -2308,12 +2309,13 @@ class ApiTest extends FixtureTest [ 'network' => 'feed', 'title' => 'item_title', + 'uri-id' => 1, 'body' => '', 'plink' => 'item_plink' ] ); - self::assertEquals('item_title', $result['text']); - self::assertEquals('

item_title


item_plink', $result['html']); + self::assertEquals("item_title\n\nParent status", $result['text']); + self::assertEquals('

item_title


Parent statusitem_plink', $result['html']); } /** @@ -2325,8 +2327,9 @@ class ApiTest extends FixtureTest { $result = api_convert_item( [ - 'title' => 'item_title', - 'body' => 'item_title item_body' + 'title' => 'item_title', + 'body' => 'item_title item_body', + 'uri-id' => 1, ] ); self::assertEquals('item_title item_body', $result['text']);