mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
parent
dabf55785f
commit
bf3ff8e2ad
1 changed files with 1 additions and 0 deletions
|
@ -733,6 +733,7 @@ abstract class CakeTestCase extends PHPUnit_Framework_TestCase {
|
||||||
|
|
||||||
$availableDs = array_keys(ConnectionManager::enumConnectionObjects());
|
$availableDs = array_keys(ConnectionManager::enumConnectionObjects());
|
||||||
if ($mock->useDbConfig === 'default') {
|
if ($mock->useDbConfig === 'default') {
|
||||||
|
$mock->useDbConfig = null;
|
||||||
$mock->setDataSource('test');
|
$mock->setDataSource('test');
|
||||||
}
|
}
|
||||||
if ($mock->useDbConfig !== 'test' && in_array('test_' . $mock->useDbConfig, $availableDs)) {
|
if ($mock->useDbConfig !== 'test' && in_array('test_' . $mock->useDbConfig, $availableDs)) {
|
||||||
|
|
Loading…
Reference in a new issue