Replace BaseObject class with DI::* calls

This commit is contained in:
nupplaPhil
2019-12-15 23:28:01 +01:00
parent 1de3f186d7
commit 388b963714
98 changed files with 321 additions and 440 deletions

View File

@@ -4,9 +4,9 @@ namespace Friendica\Test\src\Core\Lock;
use Dice\Dice;
use Friendica\App;
use Friendica\BaseObject;
use Friendica\Core\Config\Configuration;
use Friendica\Core\Lock\SemaphoreLock;
use Friendica\DI;
class SemaphoreLockTest extends LockTest
{
@@ -26,7 +26,7 @@ class SemaphoreLockTest extends LockTest
$dice->shouldReceive('create')->with(Configuration::class)->andReturn($configMock);
// @todo Because "get_temppath()" is using static methods, we have to initialize the BaseObject
BaseObject::setDependencyInjection($dice);
DI::init($dice);
parent::setUp();
}