summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2012-10-23 00:24:11 +0200
committerAndrey Andreev <narf@bofh.bg>2012-10-23 00:24:11 +0200
commit348bd1e2623ae13ef0dc576464d98eb3673ef15a (patch)
treeeeef198f7a2ab2fcfeba07741c652a2ebfc93131
parent96a4ca6605d6a8a94eea96ed00ab1cf31a8cdd35 (diff)
Fix a mock db entry
-rw-r--r--tests/codeigniter/database/query_builder/like_test.php4
-rw-r--r--tests/mocks/database/schema/skeleton.php2
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/codeigniter/database/query_builder/like_test.php b/tests/codeigniter/database/query_builder/like_test.php
index 20ce5d99c..2736fbe0b 100644
--- a/tests/codeigniter/database/query_builder/like_test.php
+++ b/tests/codeigniter/database/query_builder/like_test.php
@@ -96,8 +96,8 @@ class Like_test extends CI_TestCase {
*/
public function test_like_spaces_and_tabs()
{
- $spaces = $this->db->like('key', ' ')->get('misc')->result_array();
- $tabs = $this->db->like('key', "\t")->get('misc')->result_array();
+ $spaces = $this->db->like('value', ' ')->get('misc')->result_array();
+ $tabs = $this->db->like('value', "\t")->get('misc')->result_array();
$this->assertEquals(1, count($spaces));
$this->assertEquals(1, count($tabs));
diff --git a/tests/mocks/database/schema/skeleton.php b/tests/mocks/database/schema/skeleton.php
index fb9aaefee..2226835c4 100644
--- a/tests/mocks/database/schema/skeleton.php
+++ b/tests/mocks/database/schema/skeleton.php
@@ -130,7 +130,7 @@ class Mock_Database_Schema_Skeleton {
'misc' => array(
array('id' => 1, 'key' => '\\xxxfoo456', 'value' => 'Entry with \\xxx'),
array('id' => 2, 'key' => '\\%foo456', 'value' => 'Entry with \\%'),
- array('id' => 3, 'key' => ' One two three tab')
+ array('id' => 3, 'key' => 'spaces and tabs', 'value' => ' One two three tab')
)
);