mirror of
https://github.com/friendica/friendica
synced 2025-04-24 02:30:13 +00:00
Replace global $a with BaseObject::getApp()
This commit is contained in:
parent
d0780ccf7d
commit
820afa2284
17 changed files with 51 additions and 56 deletions
|
@ -2,7 +2,6 @@
|
|||
|
||||
namespace Friendica\Test\src\Core\Cache;
|
||||
|
||||
use Friendica\App;
|
||||
use Friendica\Core\Config;
|
||||
use Friendica\Test\DatabaseTest;
|
||||
use Friendica\Util\DateTimeFormat;
|
||||
|
@ -18,13 +17,11 @@ abstract class CacheTest extends DatabaseTest
|
|||
|
||||
protected function setUp()
|
||||
{
|
||||
global $a;
|
||||
parent::setUp();
|
||||
$this->instance = $this->getInstance();
|
||||
|
||||
// Reusable App object
|
||||
$this->app = \Friendica\BaseObject::getApp();
|
||||
$a = $this->app;
|
||||
|
||||
// Default config
|
||||
Config::set('config', 'hostname', 'localhost');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue