Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(NFC) Add in unit test of dev/core#93 expansion to allow order by of more t… #13077

Merged
merged 1 commit into from
Nov 10, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Add in unit test of dev/core#93 expansion to allow order by of more t…
…han 2 joins
  • Loading branch information
seamuslee001 committed Nov 9, 2018
commit 6d5cedb369ba79640a25612eabbeec605b8f356c
2 changes: 2 additions & 0 deletions tests/phpunit/CRM/Utils/TypeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ public function validateDataProvider() {
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),
Expand Down