1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-06 06:38:00 +02:00

db_Select_gen() test.

This commit is contained in:
Cameron
2019-02-11 12:10:13 -08:00
parent d90b3f3db6
commit 1407fca8a7

View File

@@ -356,6 +356,14 @@
$this->assertEquals(1, $result); $this->assertEquals(1, $result);
} }
public function testDb_Select_gen()
{
$result = $this->db->db_Select_gen("UPDATE `#user` SET user_ip = '127.0.0.2' WHERE user_id = 1");
$this->assertEquals(1,$result);
}
public function testInsert() public function testInsert()
{ {
// Test 1 // Test 1
@@ -377,7 +385,7 @@
{ {
$result = $this->db->index('plugin', 'plugin_path'); $result = $this->db->index('plugin', 'plugin_path');
$this->assertTrue($result); $this->assertTrue($result);
} }
public function testLastInsertId() public function testLastInsertId()