]> git.mxchange.org Git - friendica.git/commitdiff
Remove direct App instantiation from tests
authorHypolite Petovan <mrpetovan@gmail.com>
Sat, 7 Jul 2018 22:03:45 +0000 (18:03 -0400)
committerHypolite Petovan <mrpetovan@gmail.com>
Mon, 16 Jul 2018 23:38:16 +0000 (19:38 -0400)
tests/src/Core/Cache/CacheTest.php

index 5be0e4b893dd7cba8d1c129fee858ed32d826902..a2724c12b0bc2ff7a156c6aad940204d172c4f4c 100644 (file)
@@ -23,7 +23,7 @@ abstract class CacheTest extends DatabaseTest
                $this->instance = $this->getInstance();
 
                // Reusable App object
-               $this->app = new App(__DIR__.'/../');
+               $this->app = \Friendica\BaseObject::getApp();
                $a = $this->app;
 
                // Default config