Instantiate the App in test bootstrap

- Remove wrong App instantiation in Lock test
pull/5295/head
Hypolite Petovan 4 years ago
parent 3433c22116
commit 1f1a3930b2
  1. 2
      tests/bootstrap.php
  2. 2
      tests/src/Core/Lock/LockTest.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);

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

Loading…
Cancel
Save