Instantiate the App in test bootstrap
- Remove wrong App instantiation in Lock test
This commit is contained in:
parent
3433c22116
commit
1f1a3930b2
2 changed files with 3 additions and 1 deletions
|
@ -10,6 +10,8 @@ use PHPUnit\Framework\TestCase;
|
||||||
require_once __DIR__.'/../boot.php';
|
require_once __DIR__.'/../boot.php';
|
||||||
require_once __DIR__.'/../include/api.php';
|
require_once __DIR__.'/../include/api.php';
|
||||||
|
|
||||||
|
new App(dirname(__DIR__));
|
||||||
|
|
||||||
// Backward compatibility
|
// Backward compatibility
|
||||||
if (!class_exists(TestCase::class)) {
|
if (!class_exists(TestCase::class)) {
|
||||||
class_alias(PHPUnit_Framework_TestCase::class, TestCase::class);
|
class_alias(PHPUnit_Framework_TestCase::class, TestCase::class);
|
||||||
|
|
|
@ -23,7 +23,7 @@ abstract class LockTest extends DatabaseTest
|
||||||
$this->instance = $this->getInstance();
|
$this->instance = $this->getInstance();
|
||||||
|
|
||||||
// Reusable App object
|
// Reusable App object
|
||||||
$this->app = new App(__DIR__.'/../');
|
$this->app = \Friendica\BaseObject::getApp();
|
||||||
$a = $this->app;
|
$a = $this->app;
|
||||||
|
|
||||||
// Default config
|
// Default config
|
||||||
|
|
Loading…
Reference in a new issue