CRM-12321 - SqlGroupTest - Test prefetching more directly.
authorTim Otten <totten@civicrm.org>
Thu, 11 Apr 2013 00:35:22 +0000 (20:35 -0400)
committerTim Otten <totten@civicrm.org>
Thu, 11 Apr 2013 00:46:13 +0000 (20:46 -0400)
commit20b015e100926f06e8a6a3802116c64f082e33e1
tree45c3b20be6c6f6392df44296b5123ef94d1f7674
parent710ca22da3d9d589647e60bf9ea2af623bf38333
CRM-12321 - SqlGroupTest - Test prefetching more directly.

When multi-tier caching was introduced, testPrefetch regressed because it
relied on side-effects from having totally independent caches -- but the
multi-tier cache added extra, unforeseen sharing between SqlGroup instances.
In reality, prefetching works. This revision tests prefetch more directly
to workaround the changed assumptions.

----------------------------------------
* CRM-12321: Multi-tier caching causes multiple test regressions
  http://issues.civicrm.org/jira/browse/CRM-12321
CRM/Utils/Cache/SqlGroup.php
tests/phpunit/CRM/Utils/Cache/SqlGroupTest.php