From f8153dcdf883bcb6bbbbb970ec00afbd5e4a6550 Mon Sep 17 00:00:00 2001 From: Timothy Warren Date: Fri, 9 Mar 2012 13:15:56 -0500 Subject: [PATCH] Speed up unit tests --- tests/databases/sqlite.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tests/databases/sqlite.php b/tests/databases/sqlite.php index b82c0d4..73c743a 100644 --- a/tests/databases/sqlite.php +++ b/tests/databases/sqlite.php @@ -111,7 +111,7 @@ SQL; function TestCommitTransaction() { - $this->TestCreateTransaction(); + $res = $this->db->beginTransaction(); $sql = 'INSERT INTO "create_test" ("id", "key", "val") VALUES (10, 12, 14)'; $this->db->query($sql); @@ -122,7 +122,7 @@ SQL; function TestRollbackTransaction() { - $this->TestCreateTransaction(); + $res = $this->db->beginTransaction(); $sql = 'INSERT INTO "create_test" ("id", "key", "val") VALUES (182, 96, 43)'; $this->db->query($sql); @@ -174,7 +174,8 @@ SQL; } - function TestDeleteTable() + // This is really time intensive ! Run only when needed + /*function TestDeleteTable() { //Make sure the table exists to delete $dbs = $this->db->get_tables(); @@ -187,6 +188,6 @@ SQL; //Check $dbs = $this->db->get_tables(); $this->assertFalse(in_array('create_test', $dbs)); - } + }*/ } \ No newline at end of file