mirror of
https://github.com/friendica/friendica
synced 2025-04-24 02:30:13 +00:00
Config FollowUp
- New Configuration (Config is now only holding the instance) - New PConfiguration (PConfig is now only holding the instance) - Config & PConfig-Adapter don't need "ConfigCache" anymore - DB-Connection is now outside App->reload() for better dependency-chaining
This commit is contained in:
parent
c36a0eabdb
commit
eafcf3592d
59 changed files with 1754 additions and 1038 deletions
|
@ -39,7 +39,7 @@ class ConfigConsoleTest extends ConsoleTest
|
|||
->once();
|
||||
$this->configCache
|
||||
->shouldReceive('get')
|
||||
->with('config', 'test', NULL)
|
||||
->with('config', 'test', NULL, false)
|
||||
->andReturn('now')
|
||||
->twice();
|
||||
|
||||
|
@ -52,7 +52,7 @@ class ConfigConsoleTest extends ConsoleTest
|
|||
|
||||
$this->configCache
|
||||
->shouldReceive('get')
|
||||
->with('config', 'test', null)
|
||||
->with('config', 'test', null, false)
|
||||
->andReturn('now')
|
||||
->once();
|
||||
|
||||
|
@ -64,7 +64,7 @@ class ConfigConsoleTest extends ConsoleTest
|
|||
|
||||
$this->configCache
|
||||
->shouldReceive('get')
|
||||
->with('config', 'test', null)
|
||||
->with('config', 'test', null, false)
|
||||
->andReturn(null)
|
||||
->once();
|
||||
|
||||
|
@ -79,7 +79,7 @@ class ConfigConsoleTest extends ConsoleTest
|
|||
$testArray = [1, 2, 3];
|
||||
$this->configCache
|
||||
->shouldReceive('get')
|
||||
->with('config', 'test', null)
|
||||
->with('config', 'test', null, false)
|
||||
->andReturn($testArray)
|
||||
->once();
|
||||
|
||||
|
@ -107,7 +107,7 @@ class ConfigConsoleTest extends ConsoleTest
|
|||
function testVerbose() {
|
||||
$this->configCache
|
||||
->shouldReceive('get')
|
||||
->with('test', 'it', null)
|
||||
->with('test', 'it', null, false)
|
||||
->andReturn('now')
|
||||
->once();
|
||||
$console = new Config($this->consoleArgv);
|
||||
|
@ -140,7 +140,7 @@ CONF;
|
|||
->once();
|
||||
$this->configCache
|
||||
->shouldReceive('get')
|
||||
->with('test', 'it', NULL)
|
||||
->with('test', 'it', NULL, false)
|
||||
->andReturn(NULL)
|
||||
->once();
|
||||
$console = new Config();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue