APIv4 - Fix Case conformance test
authorColeman Watts <coleman@civicrm.org>
Tue, 25 May 2021 12:09:49 +0000 (08:09 -0400)
committerColeman Watts <coleman@civicrm.org>
Tue, 25 May 2021 12:09:49 +0000 (08:09 -0400)
commit6e8149833d80edc2f1b30f5f7542b69bf6256d82
tree90b89ef3eab9b60657d11b2affa2ed7e3c08000c
parentec039b89b8b1dd2c5e24f0a82473baf287389803
APIv4 - Fix Case conformance test

Now that creator_id has a default value it can also be marked as required.
Updating TestCreationParameterProvider to supply a FK before the default value
fixes the problem with user_contact_id in a test with no logged-in user.
Civi/Api4/Service/Spec/Provider/CaseCreationSpecProvider.php
tests/phpunit/api/v4/Service/TestCreationParameterProvider.php