Insert test
diff --git a/.travis.yml b/.travis.yml
index 97ea042..971f62f 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -25,4 +25,5 @@
branches:
only:
- develop
- - master
\ No newline at end of file
+ - master
+ - db-tests
\ No newline at end of file
diff --git a/tests/codeigniter/database/query_builder/insert_test.php b/tests/codeigniter/database/query_builder/insert_test.php
index 5607e8c..80073b9 100644
--- a/tests/codeigniter/database/query_builder/insert_test.php
+++ b/tests/codeigniter/database/query_builder/insert_test.php
@@ -12,7 +12,6 @@
$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 @@
*/
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 @@
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