APIv4 - Reorganize test classes, don't use transactions for custom value tests
[civicrm-core.git] / tests / phpunit / api / v4 / Action / AbstractActionFunctionTest.php
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
19 namespace api\v4\Action;
20
21 use api\v4\Api4TestBase;
22 use Civi\Test\TransactionalInterface;
23
24 /**
25 * @group headless
26 */
27 class AbstractActionFunctionTest extends Api4TestBase implements TransactionalInterface {
28
29 public function testUndefinedParamException(): void {
30 $this->expectException('API_Exception');
31 $this->expectExceptionMessage('Unknown api parameter: getLanguage');
32 \Civi\Api4\System::flush(FALSE)->getLanguage();
33 }
34
35 }