Skip to content
Snippets Groups Projects
Commit 2365bc96 authored by eileen's avatar eileen
Browse files

Unit test for FGB error in #14331

parent 7c295e89
No related branches found
No related tags found
No related merge requests found
......@@ -93,10 +93,17 @@ class CRM_Contact_SelectorTest extends CiviUnitTestCase {
]);
$rows = $selector->getRows(CRM_Core_Action::VIEW, 0, 50, '');
$this->assertEquals(1, count($rows));
CRM_Core_DAO::reenableFullGroupByMode();
$rows = $selector->getRows(CRM_Core_Action::VIEW, 0, 50, '');
$sortChar = $selector->alphabetQuery()->fetchAll();
// sort name is stored in '<last_name>, <first_name>' format, as per which the first character would be B of Bond
$this->assertEquals('B', $sortChar[0]['sort_name']);
$this->assertEquals($contactID, key($rows));
CRM_Core_DAO::reenableFullGroupByMode();
$selector->getQueryObject()->getCachedContacts([$contactID], FALSE);
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment