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

expand on copyRow and copyTable tests.

This commit is contained in:
Cameron 2019-02-11 16:30:54 -08:00
parent a941bee847
commit 3786ced51f

View File

@ -772,6 +772,13 @@
{
$result = $this->db->db_CopyRow('news', '*', "news_id = 1");
$this->assertEquals(2,$result);
$result = $this->db->db_CopyRow('bla');
$this->assertFalse($result);
$result = $this->db->db_CopyRow('bla', 'non_exist');
$this->assertFalse($result);
}
public function testDb_CopyTable()
@ -780,6 +787,11 @@
$result = $this->db->retrieve('news_bak', 'news_title', 'news_id = 1');
$this->assertEquals('Welcome to e107', $result);
$result = $this->db->db_CopyTable('non_exist', 'news_bak', false, true);
$this->assertFalse($result);
}