]> git.mxchange.org Git - friendica.git/blobdiff - tests/ApiTest.php
Fixes:
[friendica.git] / tests / ApiTest.php
index 4e272901955b6197f388aec13d14b4906a302c85..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