APIv4 - Fix saving NULL as custom field value
[civicrm-core.git] / tests / phpunit / api / v4 / Action / AbstractActionFunctionTest.php
CommitLineData
9b69b3a1
SL
1<?php
2
3/*
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC. All rights reserved. |
6 | |
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 +--------------------------------------------------------------------+
11 */
12
13/**
14 *
15 * @package CRM
16 * @copyright CiviCRM LLC https://civicrm.org/licensing
17 */
18
19namespace api\v4\Action;
20
21use api\v4\UnitTestCase;
22
23/**
24 * @group headless
25 */
26class AbstractActionFunctionTest extends UnitTestCase {
27
28 public function testUndefinedParamException(): void {
29 $this->expectException('API_Exception');
30 $this->expectExceptionMessage('Unknown api parameter: getLanguage');
31 \Civi\Api4\System::flush(FALSE)->getLanguage();
32 }
33
34}