Add function to set up an ACL for a test
test fix Only variables should be assigned by reference

/var/www/drupal/sites/default/modules/civicrm/civicrm-core/CRM/ACL/BAO/ACL.php:541
ACL Core, add a way for unit tests to flush in-function cache
CRM-15148 add tests to check impact of ACLs on contributions
testEntitiesGetCoreACLLimitingHookNoCheck fails without the commit to the api file
(next commit)

reinstate deleted functions
CRM-15148 fix api to pass check_permissions
this results in core acls but NOT hook acls being applied IF check_permissions=1
prior to this patch core acls but NOT hook acls were applied even if check_permissions =0
CRM-15148 make core ACL test incomplete as the security fix for CRM-14877 is not in 4.4
Merge pull request #3877 from eileenmcnaughton/CRM-15148

Crm 15148