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
19 namespace api\v
4\Action
;
21 use api\v
4\Api4TestBase
;
22 use Civi\Test\TransactionalInterface
;
27 class AbstractActionFunctionTest
extends Api4TestBase
implements TransactionalInterface
{
29 public function testUndefinedParamException(): void
{
30 $this->expectException('API_Exception');
31 $this->expectExceptionMessage('Unknown api parameter: getLanguage');
32 \Civi\Api4\System
::flush(FALSE)->getLanguage();