diff --git a/lib/Cake/Test/Case/Model/ConnectionManagerTest.php b/lib/Cake/Test/Case/Model/ConnectionManagerTest.php index f6e046638..39fc5beb4 100644 --- a/lib/Cake/Test/Case/Model/ConnectionManagerTest.php +++ b/lib/Cake/Test/Case/Model/ConnectionManagerTest.php @@ -181,7 +181,7 @@ class ConnectionManagerTest extends CakeTestCase { ConnectionManager::getDataSource('test'); $sources = ConnectionManager::sourceList(); $this->assertTrue(count($sources) >= 1); - $this->assertTrue(in_array('test', array_keys($sources))); + $this->assertContains('test', $sources); } /**