From 1d6fd78d4516e4131253fd1cfe932ef56f2d561c Mon Sep 17 00:00:00 2001 From: Koji Tanaka Date: Sat, 7 Jan 2023 22:28:21 +0900 Subject: [PATCH] test: Fix ConnectionManagerTest::testSourceList(). Co-authored-by: Kenshin Okinaka --- lib/Cake/Test/Case/Model/ConnectionManagerTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } /**