(REF) AbstractActionFunctionTest - Use a different placeholder/example
authorTim Otten <totten@civicrm.org>
Mon, 8 Aug 2022 09:08:28 +0000 (02:08 -0700)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Thu, 1 Sep 2022 02:57:26 +0000 (14:57 +1200)
The `$language` field was promoted to the top-level. Use `$translationMode`
which (like the old language option) is only valid on some actions.

tests/phpunit/api/v4/Action/AbstractActionFunctionTest.php

index 2c7bea1c26411cf9d732bdfcfb629cce179c33a6..0ff3c8b2b9b344977ba4147eccfb2393000b8017 100644 (file)
@@ -27,8 +27,8 @@ class AbstractActionFunctionTest extends Api4TestBase {
 
   public function testUndefinedParamException(): void {
     $this->expectException('API_Exception');
-    $this->expectExceptionMessage('Unknown api parameter: getLanguage');
-    \Civi\Api4\System::flush(FALSE)->getLanguage();
+    $this->expectExceptionMessage('Unknown api parameter: getTranslationMode');
+    \Civi\Api4\System::flush(FALSE)->getTranslationMode();
   }
 
 }