Seperated mocks from DB class
This commit is contained in:
parent
823a4ea3bd
commit
79230c4de6
3 changed files with 1431 additions and 1416 deletions
1420
app/config/collections.php
Normal file
1420
app/config/collections.php
Normal file
File diff suppressed because it is too large
Load diff
|
@ -165,6 +165,7 @@ stream_context_set_default([ // Set global user agent and http settings
|
||||||
$consoleDB = new Database();
|
$consoleDB = new Database();
|
||||||
$consoleDB->setAdapter(new RedisAdapter(new MySQLAdapter($register), $register));
|
$consoleDB->setAdapter(new RedisAdapter(new MySQLAdapter($register), $register));
|
||||||
$consoleDB->setNamespace('app_console'); // Should be replaced with param if we want to have parent projects
|
$consoleDB->setNamespace('app_console'); // Should be replaced with param if we want to have parent projects
|
||||||
|
$consoleDB->setMocks(include __DIR__ . '/../app/config/collections.php');
|
||||||
|
|
||||||
Authorization::disable();
|
Authorization::disable();
|
||||||
|
|
||||||
|
|
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue