mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 17:16:18 +00:00
Correctly getting connection configs in CakeSchemaTest
This commit is contained in:
parent
aab8e98531
commit
02912b6eeb
1 changed files with 2 additions and 2 deletions
|
@ -691,9 +691,9 @@ class CakeSchemaTest extends CakeTestCase {
|
|||
* @return void
|
||||
*/
|
||||
public function testSchemaReadWithCrossDatabase() {
|
||||
$config = new DATABASE_CONFIG();
|
||||
$config = ConnectionManager::enumConnectionObjects();
|
||||
$this->skipIf(
|
||||
!isset($config->test) || !isset($config->test2),
|
||||
!isset($config['test']) || !isset($config['test2']),
|
||||
'Primary and secondary test databases not configured, skipping cross-database join tests.'
|
||||
. ' To run these tests, you must define $test and $test2 in your database configuration.'
|
||||
);
|
||||
|
|
Loading…
Add table
Reference in a new issue