Permalink
Browse files

Correctly getting connection configs in CakeSchemaTest

  • Loading branch information...
1 parent aab8e98 commit 02912b6eeb9efcec0646e1185c62b2502ff48cd4 @lorenzo lorenzo committed Nov 17, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/Cake/Test/Case/Model/CakeSchemaTest.php
@@ -691,9 +691,9 @@ public function testSchemaReadWithPlugins() {
* @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.'
);

0 comments on commit 02912b6

Please sign in to comment.