From f1551a4613c422f05d08e9b527052e673332ade9 Mon Sep 17 00:00:00 2001 From: Cameron Date: Wed, 13 Feb 2019 11:48:56 -0800 Subject: [PATCH] escape test. --- tests/unit/e_db_pdoTest.php | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/tests/unit/e_db_pdoTest.php b/tests/unit/e_db_pdoTest.php index 9792f49ec..9b33d231c 100644 --- a/tests/unit/e_db_pdoTest.php +++ b/tests/unit/e_db_pdoTest.php @@ -738,17 +738,19 @@ $result = $this->db->field('plugin', 'plugin_path'); $this->assertTrue($result); } -/* + public function testEscape() { + $result = $this->db->escape(123); + $this->assertEquals(123,$result); + $result = $this->db->escape("Can't", true); + $this->assertEquals("Can't", $result); + } - public function testDb_Table_exists() - { - } -*/ + public function testDb_Table_exists() { $result = $this->db->db_Table_exists('plugin');