(dev/core#647) Fix Up Contact Selector Test by changing class name to get test to...
authorSeamus Lee <seamuslee001@gmail.com>
Tue, 8 Jan 2019 01:18:10 +0000 (12:18 +1100)
committerSeamus Lee <seamuslee001@gmail.com>
Tue, 8 Jan 2019 23:28:11 +0000 (10:28 +1100)
commit1d17e4fc0b43398b4b5f3f0722ba4d9380073f83
treeb692a946093007019a8dfed85a0b266fff268faf
parent5afdc13555a8aa27afb424d1a2f417a1dbc1ba3e
(dev/core#647) Fix Up Contact Selector Test by changing class name to get test to run and make changes following code changes that affect clauses and calling get rows

CRM_Contact_SelectorTest - Fix escaping

(dev/core#217) CRM_Contact_SelectorTest - Remove stale/unnecessary assertion

The table `civicrm_prevnext_cache` includes three columns (`entity_id1`,
`entity_id2`, `entity_table`).  These columns have some use-cases (e.g.  for
deduping) and some historical value, but the only one needed for
caching search-results is `entity_id1`.

dev/core#217 introduced an interface `CRM_Core_PrevNextCache_Interface` for
caching search-results.  This interface only passes through a list of CID's
(effectively `entity_id1`); because we don't need `entity_id2` and
`entity_table`, it makes no provisions for passing them through, and they're
not saved.  This simplifies the interface and makes it more realistic to
implement alternative prevnext storage mechanisms.
tests/phpunit/CRM/Contact/SelectorTest.php