use Dice\Dice;
use Friendica\App;
-use Friendica\BaseObject;
use Friendica\Console\AutomaticInstallation;
-use Friendica\Core\Config\Cache\ConfigCache;
+use Friendica\Core\Config\Cache;
use Friendica\Core\Installer;
-use Friendica\Core\L10n\L10n;
+use Friendica\Core\L10n;
use Friendica\Core\Logger;
use Friendica\Database\Database;
+use Friendica\DI;
use Friendica\Test\Util\DBAMockTrait;
use Friendica\Test\Util\DBStructureMockTrait;
use Friendica\Test\Util\RendererMockTrait;
private $assertFileDb;
/**
- * @var ConfigCache The configuration cache to check after each test
+ * @var Cache The configuration cache to check after each test
*/
private $configCache;
->with(L10n::class)
->andReturn($l10nMock);
- BaseObject::setDependencyInjection($this->dice);
+ DI::init($this->dice);
- $this->configCache = new ConfigCache();
+ $this->configCache = new Cache();
$this->configCache->set('system', 'basepath', $this->root->url());
$this->configCache->set('config', 'php_path', trim(shell_exec('which php')));
$this->configCache->set('system', 'theme', 'smarty3');