diff options
author | Timothy Warren <tim@timshomepage.net> | 2012-05-16 14:48:13 +0200 |
---|---|---|
committer | Timothy Warren <tim@timshomepage.net> | 2012-05-16 14:48:13 +0200 |
commit | 351c2e1b0d3fdca80a5483d708d7c71084226e68 (patch) | |
tree | 749c6accebdf6da1c301f9c2ee76c78bfe15954e /tests/codeigniter/database/query_builder/insert_test.php | |
parent | 2ed226bd5ed19754c2fb28d4b98ac5423741f039 (diff) | |
parent | 8279420f989a8cda4427c3983ee919c6a1073dd7 (diff) |
Merge branch 'develop' of git://github.com/EllisLab/CodeIgniter into errors
Diffstat (limited to 'tests/codeigniter/database/query_builder/insert_test.php')
-rw-r--r-- | tests/codeigniter/database/query_builder/insert_test.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/codeigniter/database/query_builder/insert_test.php b/tests/codeigniter/database/query_builder/insert_test.php index 53ce23c19..8ba60e242 100644 --- a/tests/codeigniter/database/query_builder/insert_test.php +++ b/tests/codeigniter/database/query_builder/insert_test.php @@ -30,11 +30,10 @@ class Insert_test extends CI_TestCase { // Do normal insert $this->assertTrue($this->db->insert('job', $job_data)); - $jobs = $this->db->get('job')->result_array(); - $job1 = $jobs[0]; + $job1 = $this->db->get('job')->row(); // Check the result - $this->assertEquals('Grocery Sales', $job1['name']); + $this->assertEquals('Grocery Sales', $job1->name); } |