CRM-20316 - Fix "New Mailing" regression. Update tests.
authorTim Otten <totten@civicrm.org>
Tue, 2 May 2017 03:12:32 +0000 (20:12 -0700)
committerTim Otten <totten@civicrm.org>
Tue, 2 May 2017 03:12:32 +0000 (20:12 -0700)
commit91387828c988aca83ab15625c8dab0f3a59a2630
treeb4374a09abfaa76adf8e4ce81e33bf0b3984fcb2
parentafdd30b52dc476589a954d65342163a9a6712e93
CRM-20316 - Fix "New Mailing" regression. Update tests.

`testWithoutParam_create()` asserts that *generally* you need to provide
some params to create a record.  This was true for Mailings in <=4.7.18
because `create_id` was required.  The main goal of a98504a72 was to make
`created_id` optional, which actually meant that *no data* would be
required (making `testWithoutParam_create()` non-applicable/inaccurate.

(This was obscured at the time because a98504a72 simultaneously made
`subject` mandatory, but that led to the regression in "New Mailing".  Since
neither `created_id` nor `subject` is required...  there's nothing left to
be required.  The correct behavior is to skip `testWithoutParam_create()`
for mailings.)
tests/phpunit/api/v3/SyntaxConformanceTest.php