Fix last undefined variable/index messages in tests
authorHypolite Petovan <mrpetovan@gmail.com>
Sun, 1 Jul 2018 19:08:14 +0000 (15:08 -0400)
committerHypolite Petovan <mrpetovan@gmail.com>
Mon, 2 Jul 2018 11:49:44 +0000 (07:49 -0400)
tests/ApiTest.php

index 160fb1b..34ca7dd 100644 (file)
@@ -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);