From: Hypolite Petovan Date: Sat, 7 Jul 2018 01:20:29 +0000 (-0400) Subject: Instantiate the App in test bootstrap X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=1f1a3930b238b5773ca23f0e3dfb6702b0928549;p=friendica.git Instantiate the App in test bootstrap - Remove wrong App instantiation in Lock test --- diff --git a/tests/bootstrap.php b/tests/bootstrap.php index 4474e4ee8e..4b03aa246b 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -10,6 +10,8 @@ use PHPUnit\Framework\TestCase; require_once __DIR__.'/../boot.php'; require_once __DIR__.'/../include/api.php'; +new App(dirname(__DIR__)); + // Backward compatibility if (!class_exists(TestCase::class)) { class_alias(PHPUnit_Framework_TestCase::class, TestCase::class); diff --git a/tests/src/Core/Lock/LockTest.php b/tests/src/Core/Lock/LockTest.php index dafbd74a6f..5e4bebd45c 100644 --- a/tests/src/Core/Lock/LockTest.php +++ b/tests/src/Core/Lock/LockTest.php @@ -23,7 +23,7 @@ abstract class LockTest extends DatabaseTest $this->instance = $this->getInstance(); // Reusable App object - $this->app = new App(__DIR__.'/../'); + $this->app = \Friendica\BaseObject::getApp(); $a = $this->app; // Default config