1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-05 06:07:32 +02:00
This commit is contained in:
Cameron
2019-02-13 16:21:01 -08:00
parent 56051cf0cc
commit 6c2c9babce

View File

@@ -709,6 +709,19 @@
public function testMax() public function testMax()
{ {
$insert = array(
'gen_id' => 0,
'gen_type' => 'testMax',
'gen_datestamp' => time(),
'gen_user_id' => 333,
'gen_ip' => '127.0.0.1',
'gen_intdata' => '',
'gen_chardata' => ''
);
$this->db->insert('generic', $insert);
$insert = array( $insert = array(
'gen_id' => 0, 'gen_id' => 0,
'gen_type' => 'testMax', 'gen_type' => 'testMax',
@@ -724,6 +737,9 @@
$result = $this->db->max('generic', 'gen_user_id'); $result = $this->db->max('generic', 'gen_user_id');
$this->assertEquals('555', $result); $this->assertEquals('555', $result);
$result = $this->db->max('generic', 'gen_user_id');
$this->assertEquals('555', $result, "gen_ip = '127.0.0.1'");
// var_dump($result); // var_dump($result);
} }
@@ -856,7 +872,7 @@
$result = $this->db->db_CopyRow('bla'); $result = $this->db->db_CopyRow('bla');
$this->assertFalse($result); $this->assertFalse($result);
$result = $this->db->db_CopyRow('bla', 'non_exist'); $result = $this->db->db_CopyRow('bla', 'non_exist', "news_id = 1");
$this->assertFalse($result); $this->assertFalse($result);
$result = $this->db->db_CopyRow(null); $result = $this->db->db_CopyRow(null);