Add default location for API v3 creates of Address, IM, OpenID and Phone.
authorAidan Saunders <aidan.saunders@squiffle.uk>
Fri, 26 Jul 2019 10:14:03 +0000 (11:14 +0100)
committerAidan Saunders <aidan.saunders@squiffle.uk>
Fri, 26 Jul 2019 22:38:25 +0000 (23:38 +0100)
commit0e70279a1456605ab3ac362f4150fb5ddb6e6b39
tree70606c9a65ce2ed526b9707fdfab0bb3e93700cf
parent0d3ea1dda1c0b71a79aa16401abbc3d15d17bab2
Add default location for API v3 creates of Address, IM, OpenID and Phone.

Has tests.

Default location was recently added for APIv3 Email.create
(https://github.com/civicrm/civicrm-core/pull/14489)
and for Address, Email, IM, OpenID and Phone in APIv4
(https://github.com/civicrm/org.civicrm.api4/pull/162)
so this brings consistency of behaviour for these entities between each other
and between APIv3 and APIv4
api/v3/Address.php
api/v3/Im.php
api/v3/OpenID.php
api/v3/Phone.php
tests/phpunit/api/v3/AddressTest.php
tests/phpunit/api/v3/EmailTest.php
tests/phpunit/api/v3/ImTest.php
tests/phpunit/api/v3/OpenIDTest.php
tests/phpunit/api/v3/PhoneTest.php