CRM-19813 - CRM_Utils_Hook_UnitTests::invoke() - Fix return handling
authorTim Otten <totten@civicrm.org>
Sat, 4 Mar 2017 00:52:01 +0000 (16:52 -0800)
committerTim Otten <totten@civicrm.org>
Thu, 30 Mar 2017 22:39:52 +0000 (15:39 -0700)
commit241bda33d5edb85ab5b139c4d86bdae6c64e8736
treee09888ab20f7c532ea648083ed17822cc505f425
parent6d292deecdeb3c8737dc1c4a738920af76e9e860
CRM-19813 - CRM_Utils_Hook_UnitTests::invoke() - Fix return handling

The normal `runHooks()` function has a weird protocol wherein results may be
progressively merged (if they're non-empty arrays).  This revision extends
that behavior to each of the unit-test hook formulations.

The patch enables better unit-testing of CRM-19813.
CRM/Utils/Hook/UnitTests.php