summaryrefslogtreecommitdiffstats
path: root/tests/codeigniter/database/query_builder/insert_test.php
diff options
context:
space:
mode:
authorTaufan Aditya <toopay@taufanaditya.com>2012-04-06 13:00:55 +0200
committerTaufan Aditya <toopay@taufanaditya.com>2012-04-06 13:00:55 +0200
commitfc92fc2e4f262a3607898ca7cd8b361d95f09136 (patch)
tree2e4618afc52a3d84d51fc7ec868c6810ba9a2534 /tests/codeigniter/database/query_builder/insert_test.php
parent81b6b5d4ea2e63159c443bae19880a78f6ac2f9f (diff)
Add truncate
Diffstat (limited to 'tests/codeigniter/database/query_builder/insert_test.php')
-rw-r--r--tests/codeigniter/database/query_builder/insert_test.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/codeigniter/database/query_builder/insert_test.php b/tests/codeigniter/database/query_builder/insert_test.php
index 80073b9ba..78587d2e9 100644
--- a/tests/codeigniter/database/query_builder/insert_test.php
+++ b/tests/codeigniter/database/query_builder/insert_test.php
@@ -4,6 +4,7 @@ class Insert_test extends CI_TestCase {
/**
* @var object Database/Query Builder holder
+ * @see ./mocks/schema/skeleton.php
*/
protected $db;
@@ -12,6 +13,9 @@ class Insert_test extends CI_TestCase {
$this->db = Mock_Database_Schema_Skeleton::init(DB_DRIVER);
Mock_Database_Schema_Skeleton::create_tables();
+
+ // Truncate the current datas
+ $this->db->truncate('job');
}
// ------------------------------------------------------------------------