]> git.mxchange.org Git - friendica.git/blobdiff - tests/ApiTest.php
Fixes:
[friendica.git] / tests / ApiTest.php
index 1854c996b0ffbd258e369775744431efca10912b..4d19994e35e9ab0aece2286edd46bdc47c38791f 100644 (file)
@@ -68,6 +68,18 @@ class ApiTest extends DatabaseTest
                Config::set('system', 'theme', 'system_theme');
        }
 
+       /**
+        * Cleanup variables used by tests.
+        */
+       protected function tearDown()
+       {
+               parent::tearDown();
+
+               $app = get_app();
+               $app->argc = 1;
+               $app->argv = ['home'];
+       }
+
        /**
         * Assert that an user array contains expected keys.
         * @param array $user User array
@@ -1202,7 +1214,8 @@ class ApiTest extends DatabaseTest
        {
                $_FILES = [
                        'media' => [
-                               'id' => 666
+                               'id' => 666,
+                               'tmp_name' => 'tmp_name'
                        ]
                ];
                api_media_upload();