]> git.mxchange.org Git - friendica.git/commitdiff
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 160fb1b9662f7bc31a70a4f0ddc5fcb041bdb45c..34ca7ddf0cba51a64b9aded27d2a9d8f23dbaf00 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);