1
0
Fork 0

Instantiate the App in test bootstrap

- Remove wrong App instantiation in Lock test
This commit is contained in:
Hypolite Petovan 2018-07-06 21:20:29 -04:00
parent 3433c22116
commit 1f1a3930b2
2 changed files with 3 additions and 1 deletions

View file

@ -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);

View file

@ -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