diff options
author | Sander Marechal <[email protected]> | 2011-03-03 08:30:37 +0100 |
---|---|---|
committer | Sander Marechal <[email protected]> | 2011-03-03 08:30:37 +0100 |
commit | 089336fcd9417d6c4e40be802b3dec37b11c7d51 (patch) | |
tree | ff4cd97deb4e4cadd26ef6191ed6411df5957dd3 /test | |
parent | b58b452dfa6de53f3864a78cfba9eef1842b95d5 (diff) |
Rename order_raw to order_by_expr
Diffstat (limited to 'test')
-rw-r--r-- | test/test_queries.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_queries.php b/test/test_queries.php index b4f3341..35896e3 100644 --- a/test/test_queries.php +++ b/test/test_queries.php @@ -80,9 +80,9 @@ $expected = "SELECT * FROM `widget` ORDER BY `name` ASC LIMIT 1"; Tester::check_equal("ORDER BY ASC", $expected); - ORM::for_table('widget')->order_raw('SOUNDEX(`name`)')->find_one(); + ORM::for_table('widget')->order_by_expr('SOUNDEX(`name`)')->find_one(); $expected = "SELECT * FROM `widget` ORDER BY SOUNDEX(`name`) LIMIT 1"; - Tester::check_equal("Raw ORDER BY", $expected); + Tester::check_equal("ORDER BY expression", $expected); ORM::for_table('widget')->order_by_asc('name')->order_by_desc('age')->find_one(); $expected = "SELECT * FROM `widget` ORDER BY `name` ASC, `age` DESC LIMIT 1"; |