From 6d5cedb369ba79640a25612eabbeec605b8f356c Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Sat, 10 Nov 2018 08:01:28 +1100 Subject: [PATCH] Add in unit test of dev/core#93 expansion to allow order by of more than 2 joins --- tests/phpunit/CRM/Utils/TypeTest.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/phpunit/CRM/Utils/TypeTest.php b/tests/phpunit/CRM/Utils/TypeTest.php index a9b1bb36bf..dab58cbfe5 100644 --- a/tests/phpunit/CRM/Utils/TypeTest.php +++ b/tests/phpunit/CRM/Utils/TypeTest.php @@ -73,6 +73,8 @@ class CRM_Utils_TypeTest extends CiviUnitTestCase { array('field(table.civicrm_column_name,4,5,6)', 'MysqlOrderBy', 'field(table.civicrm_column_name,4,5,6)'), array('table.civicrm_column_name desc,other_column, another_column desc', 'MysqlOrderBy', 'table.civicrm_column_name desc,other_column, another_column desc'), array('table.`Home-street_address` asc, `table-alias`.`Home-street_address` desc,`table-alias`.column', 'MysqlOrderBy', 'table.`Home-street_address` asc, `table-alias`.`Home-street_address` desc,`table-alias`.column'), + // Lab issue dev/core#93 allow for 3 column orderby + array('contact_id.gender_id.label', 'MysqlOrderBy', 'contact_id.gender_id.label'), array('a string', 'String', 'a string'), array('{"contact":{"contact_id":205}}', 'Json', '{"contact":{"contact_id":205}}'), array('{"contact":{"contact_id":!n†rude®}}', 'Json', NULL), -- 2.25.1