]> git.mxchange.org Git - friendica.git/blobdiff - tests/src/Core/Lock/LockTest.php
Replace global $a with BaseObject::getApp()
[friendica.git] / tests / src / Core / Lock / LockTest.php
index c8acd74067daa30d4d95a7d12e6f2fb4dbeba60c..79ee023bd8b98b88e5208828c6d7d7d53f2bd0f5 100644 (file)
@@ -2,6 +2,7 @@
 
 namespace Friendica\Test\src\Core\Lock;
 
+use Friendica\Core\Config;
 use Friendica\Test\DatabaseTest;
 
 abstract class LockTest extends DatabaseTest
@@ -17,6 +18,16 @@ abstract class LockTest extends DatabaseTest
        {
                parent::setUp();
                $this->instance = $this->getInstance();
+
+               // Reusable App object
+               $this->app = \Friendica\BaseObject::getApp();
+
+               // 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');
        }
 
        public function testLock() {