APIv4 - Add is_draft field for mailings, fix test
authorcolemanw <coleman@civicrm.org>
Sat, 4 Nov 2023 03:28:55 +0000 (23:28 -0400)
committercolemanw <coleman@civicrm.org>
Sun, 5 Nov 2023 15:45:31 +0000 (10:45 -0500)
commit6565e243f275bd5f9ceea50bc58c44582d9349e9
tree50dc1e556a87c450a85262039f8e3b0a8fd3b6fc
parent58ed2817357cac3f18c28d285064f26b1f3f132d
APIv4 - Add is_draft field for mailings, fix test

Figuring out if a mailing is a draft or not can be tricky.
This encapsulates the tricky-ness in a reusable calculated field.
Civi/Api4/Service/Spec/Provider/MailingGetSpecProvider.php
tests/phpunit/api/v4/Entity/MailingEventTest.php [moved from tests/phpunit/api/v4/Entity/MailingEvent.php with 75% similarity]