From: Hypolite Petovan Date: Sun, 1 Jul 2018 19:08:14 +0000 (-0400) Subject: Fix last undefined variable/index messages in tests X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=39b61da05d9d1a96d6eadc13022169b216720525;p=friendica.git Fix last undefined variable/index messages in tests --- diff --git a/tests/ApiTest.php b/tests/ApiTest.php index 160fb1b966..34ca7ddf0c 100644 --- a/tests/ApiTest.php +++ b/tests/ApiTest.php @@ -3373,7 +3373,7 @@ class ApiTest extends DatabaseTest */ public function testApiShareAsRetweet() { - $item = []; + $item = ['body' => '']; $result = api_share_as_retweet($item); $this->assertFalse($result); } @@ -3413,7 +3413,7 @@ class ApiTest extends DatabaseTest */ public function testApiInReplyTo() { - $result = api_in_reply_to([]); + $result = api_in_reply_to(['id' => 0, 'parent' => 0, 'uri' => '', 'thr-parent' => '']); $this->assertArrayHasKey('status_id', $result); $this->assertArrayHasKey('user_id', $result); $this->assertArrayHasKey('status_id_str', $result);