4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC. All rights reserved. |
7 | This work is published under the GNU AGPLv3 license with some |
8 | permitted exceptions and without any warranty. For full license |
9 | and copyright information, see https://civicrm.org/licensing |
10 +--------------------------------------------------------------------+
16 * @copyright CiviCRM LLC https://civicrm.org/licensing
20 namespace api\v
4\Action
;
23 use api\v
4\UnitTestCase
;
28 class RequiredFieldTest
extends UnitTestCase
{
30 public function testRequired() {
33 Event
::create()->execute();
35 catch (\API_Exception
$e) {
36 $msg = $e->getMessage();
38 $this->assertEquals('Mandatory values missing from Api4 Event::create: title, event_type_id, start_date', $msg);