1
0
mirror of https://github.com/e107inc/e107.git synced 2025-04-20 20:51:53 +02:00

Fixed array key absence check in e_db_abstractTest::testDb_Fetch()

This commit is contained in:
Nick Liu 2020-01-18 00:36:22 +01:00
parent 15de2e233b
commit 46b541889f
No known key found for this signature in database
GPG Key ID: 1167C5F9C9897637

View File

@ -584,8 +584,8 @@ abstract class e_db_abstractTest extends \Codeception\Test\Unit
$this->db->select('user', '*', 'user_id = 1');
$row = $this->db->db_Fetch();
$this->assertEquals("e107", $row['user_name']);
$this->assertNull($row[0]);
$this->assertNull($row[1]);
$this->assertFalse(isset($row[0]), "MYSQL_NUM keys not expected");
$this->assertFalse(isset($row[1]), "MYSQL_NUM keys not expected");
// legacy tests
$this->db->select('user', '*', 'user_id = 1');