Correctly getting connection configs in CakeSchemaTest

This commit is contained in:
Jose Lorenzo Rodriguez 2011-11-17 01:03:46 -04:30
parent aab8e98531
commit 02912b6eeb

View file

@ -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.'
);