test: Fix ConnectionManagerTest::testSourceList().

Co-authored-by: Kenshin Okinaka <okinakak@yahoo.co.jp>
This commit is contained in:
Koji Tanaka 2023-01-07 22:28:21 +09:00 committed by Kamil Wylegala
parent bab8a84436
commit 1d6fd78d45

View file

@ -181,7 +181,7 @@ class ConnectionManagerTest extends CakeTestCase {
ConnectionManager::getDataSource('test'); ConnectionManager::getDataSource('test');
$sources = ConnectionManager::sourceList(); $sources = ConnectionManager::sourceList();
$this->assertTrue(count($sources) >= 1); $this->assertTrue(count($sources) >= 1);
$this->assertTrue(in_array('test', array_keys($sources))); $this->assertContains('test', $sources);
} }
/** /**