mirror of
https://github.com/e107inc/e107.git
synced 2025-08-07 23:26:41 +02:00
More test for legacy fetch
This commit is contained in:
@@ -593,7 +593,21 @@
|
|||||||
$this->assertEquals("e107", $row['user_name']);
|
$this->assertEquals("e107", $row['user_name']);
|
||||||
$this->assertEquals("e107", $row[1]);
|
$this->assertEquals("e107", $row[1]);
|
||||||
|
|
||||||
|
// legacy tests
|
||||||
|
$this->db->select('user', '*', 'user_id = 1');
|
||||||
|
$row = $this->db->db_Fetch(MYSQL_ASSOC);
|
||||||
|
$this->assertArrayHasKey('user_ip', $row);
|
||||||
|
|
||||||
|
$qry = 'SHOW CREATE TABLE `'.MPREFIX."user`";
|
||||||
|
$this->db->gen($qry);
|
||||||
|
|
||||||
|
$row = $this->db->db_Fetch(MYSQL_NUM);
|
||||||
|
$this->assertEquals('e107_user', $row[0]);
|
||||||
|
|
||||||
|
$this->db->select('user', '*', 'user_id = 1');
|
||||||
|
$row = $this->db->db_Fetch(MYSQL_BOTH);
|
||||||
|
$this->assertEquals("e107", $row['user_name']);
|
||||||
|
$this->assertEquals("e107", $row[1]);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -794,6 +808,9 @@
|
|||||||
$result = $this->db->isEmpty('comments');
|
$result = $this->db->isEmpty('comments');
|
||||||
$this->assertTrue($result);
|
$this->assertTrue($result);
|
||||||
|
|
||||||
|
$result = $this->db->isEmpty();
|
||||||
|
$this->assertFalse($result);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testDb_ResetTableList()
|
public function testDb_ResetTableList()
|
||||||
|
Reference in New Issue
Block a user