Apiv4 - Make Groups a managed entity, fix 'null' bugs in BAO_Group
authorColeman Watts <coleman@civicrm.org>
Mon, 6 Dec 2021 16:09:33 +0000 (11:09 -0500)
committerColeman Watts <coleman@civicrm.org>
Wed, 8 Dec 2021 20:14:09 +0000 (15:14 -0500)
commitc4f19d0f8296491babad027c870a1223acf46e9a
treeab6b41964147f3e5da39ad7a67a2a7d7ca52bd3b
parentd50cef9d57d6b2678c3e24756953d6ba49521c13
Apiv4 - Make Groups a managed entity, fix 'null' bugs in BAO_Group

Adds Group as an APIv4 managed entity, with tests.
This allows SmartGroups to be exported along with Saved Searches.

The tests turned up bugs in the Group BAO, where the API passes the string 'null'
to represent null values but the BAO misinterprets it as a value.
CRM/Contact/BAO/Group.php
CRM/Core/ManagedEntities.php
Civi/Api4/Group.php
tests/phpunit/api/v4/Entity/ManagedEntityTest.php