From 93a2dde80a7fe09f66c8157cbe578d78ac54dbf4 Mon Sep 17 00:00:00 2001 From: Cameron Date: Sun, 10 Feb 2019 19:11:35 -0800 Subject: [PATCH] More tests. --- tests/unit/e_db_pdoTest.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/tests/unit/e_db_pdoTest.php b/tests/unit/e_db_pdoTest.php index 351d09474..6f15a74e5 100644 --- a/tests/unit/e_db_pdoTest.php +++ b/tests/unit/e_db_pdoTest.php @@ -746,17 +746,21 @@ $this->assertFalse($present); } -/* + public function testDb_CopyRow() { - + $result = $this->db->db_CopyRow('news', '*', "news_id = 1"); + $this->assertEquals(2,$result); } public function testDb_CopyTable() { + $this->db->db_CopyTable('news', 'news_bak', false, true); + $result = $this->db->retrieve('news_bak', 'news_title', 'news_id = 1'); + $this->assertEquals('Welcome to e107', $result); } -*/ + public function testBackup() {