use Friendica\App;
use Friendica\Core\Cache\ICache;
use Friendica\Core\Cache\IMemoryCache;
-use Friendica\Core\Config\Cache\ConfigCache;
-use Friendica\Core\Config\Configuration;
+use Friendica\Core\Config\Cache;
+use Friendica\Core\Config\IConfig;
use Friendica\Core\Lock\ILock;
use Friendica\Database\Database;
use Friendica\Test\Util\VFSTrait;
$this->assertInstanceOf(ConfigFileLoader::class, $configFileLoader);
- $configCache = new ConfigCache();
+ $configCache = new Cache();
$configFileLoader->setupCache($configCache);
$this->assertNotEmpty($configCache->getAll());
$this->assertInstanceOf(Profiler::class, $profiler);
- $configCache = new ConfigCache([
+ $configCache = new Cache([
'system' => [
'profiler' => true,
],
public function testConfiguration()
{
- /** @var Configuration $config */
- $config = $this->dice->create(Configuration::class);
+ /** @var IConfig $config */
+ $config = $this->dice->create(IConfig::class);
- $this->assertInstanceOf(Configuration::class, $config);
+ $this->assertInstanceOf(IConfig::class, $config);
$this->assertNotEmpty($config->get('database', 'username'));
}
public function testDevLogger()
{
- /** @var Configuration $config */
- $config = $this->dice->create(Configuration::class);
+ /** @var IConfig $config */
+ $config = $this->dice->create(IConfig::class);
$config->set('system', 'dlogfile', $this->root->url() . '/friendica.log');
/** @var LoggerInterface $logger */