Skip to content

Commit

Permalink
Correctly getting connection configs in CakeSchemaTest
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo committed Nov 17, 2011
1 parent aab8e98 commit 02912b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Cake/Test/Case/Model/CakeSchemaTest.php
Expand Up @@ -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.'
);
Expand Down

0 comments on commit 02912b6

Please sign in to comment.