diff options
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"; |