summaryrefslogtreecommitdiffstats
path: root/tests/codeigniter/database/query_builder
diff options
context:
space:
mode:
Diffstat (limited to 'tests/codeigniter/database/query_builder')
-rw-r--r--tests/codeigniter/database/query_builder/insert_test.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/codeigniter/database/query_builder/insert_test.php b/tests/codeigniter/database/query_builder/insert_test.php
index 5607e8ce1..80073b9ba 100644
--- a/tests/codeigniter/database/query_builder/insert_test.php
+++ b/tests/codeigniter/database/query_builder/insert_test.php
@@ -12,7 +12,6 @@ class Insert_test extends CI_TestCase {
$this->db = Mock_Database_Schema_Skeleton::init(DB_DRIVER);
Mock_Database_Schema_Skeleton::create_tables();
- Mock_Database_Schema_Skeleton::create_data();
}
// ------------------------------------------------------------------------
@@ -22,7 +21,7 @@ class Insert_test extends CI_TestCase {
*/
public function test_insert()
{
- $job_data = array('name' => 'Grocery Sales', 'description' => 'Discount!');
+ $job_data = array('id' => 1, 'name' => 'Grocery Sales', 'description' => 'Discount!');
// Do normal insert
$this->assertTrue($this->db->insert('job', $job_data));
@@ -36,8 +35,8 @@ class Insert_test extends CI_TestCase {
public function test_insert_batch()
{
$job_datas = array(
- array('name' => 'Commedian', 'description' => 'Theres something in your teeth'),
- array('name' => 'Cab Driver', 'description' => 'Iam yellow'),
+ array('id' => 2, 'name' => 'Commedian', 'description' => 'Theres something in your teeth'),
+ array('id' => 3, 'name' => 'Cab Driver', 'description' => 'Iam yellow'),
);
// Do insert batch