]> git.mxchange.org Git - friendica.git/blobdiff - tests/ApiTest.php
moved get_guid to System::createGUID
[friendica.git] / tests / ApiTest.php
index c8443512c8a461e417b5992c383a608e35f94809..a56290198398bb665de93caf9248a26881165488 100644 (file)
@@ -5,7 +5,6 @@
 
 namespace Friendica\Test;
 
-use Friendica\App;
 use Friendica\Core\Config;
 use Friendica\Core\PConfig;
 use Friendica\Network\BadRequestException;
@@ -26,13 +25,8 @@ class ApiTest extends DatabaseTest
         */
        protected function setUp()
        {
-               global $a;
                parent::setUp();
 
-               // Reusable App object
-               $this->app = new App(__DIR__.'/../');
-               $a = $this->app;
-
                // User data that the test database is populated with
                $this->selfUser = [
                        'id' => 42,
@@ -62,13 +56,6 @@ class ApiTest extends DatabaseTest
                        'authenticated' => true,
                        'uid' => $this->selfUser['id']
                ];
-
-               // Default config
-               Config::set('config', 'hostname', 'localhost');
-               Config::set('system', 'throttle_limit_day', 100);
-               Config::set('system', 'throttle_limit_week', 100);
-               Config::set('system', 'throttle_limit_month', 100);
-               Config::set('system', 'theme', 'system_theme');
        }
 
        /**