(NFC) Mark various tests with `@group locale`
authorTim Otten <totten@civicrm.org>
Mon, 8 Aug 2022 09:24:33 +0000 (02:24 -0700)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Tue, 16 Aug 2022 19:22:15 +0000 (07:22 +1200)
Note: There seems to be some weirdness when running the full-group. But breaking down by a couple folders may help:

```
civibuild restore dmaster --no-cms ; CIVICRM_UF=UnitTests phpunit8 tests/phpunit/api/ --debug --group locale --stop-on-failure
civibuild restore dmaster --no-cms ; CIVICRM_UF=UnitTests phpunit8 tests/phpunit/CRM/ --debug --group locale --stop-on-failure
civibuild restore dmaster --no-cms ; CIVICRM_UF=UnitTests phpunit8 tests/phpunit/Civi/ --debug --group locale --stop-on-failure
```

tests/phpunit/CRM/Contribute/Form/ContributionPageTranslationTest.php
tests/phpunit/CRM/Core/I18n/LocaleTest.php
tests/phpunit/CRM/Core/I18n/SchemaTest.php
tests/phpunit/CRM/Core/Smarty/plugins/CrmMoneyTest.php
tests/phpunit/CRM/Mailing/BAO/MailingTest.php
tests/phpunit/CRM/Utils/MoneyTest.php
tests/phpunit/Civi/Core/FormatTest.php
tests/phpunit/Civi/Token/TokenProcessorTest.php
tests/phpunit/api/v3/MultilingualTest.php

index f4240b3ea61f1711c78cb3aab798c659feb2f58d..e498b25dbe3723f66459fa5d4881c5bc12eee1be 100644 (file)
@@ -13,6 +13,7 @@
  * Test ContributionPage translation features.
  *
  * @group headless
+ * @group locale
  */
 class CRM_Contribute_Form_ContributionPageTranslationTest extends CiviUnitTestCase {
 
index c0735b850c77710772c60c8fb67749288780fc8c..29c27fbbdfdd2d4580f5e8fd6e891251d815b8a9 100644 (file)
@@ -11,6 +11,7 @@
 /**
  * Class CRM_Core_I18n_LocaleTest
  * @group headless
+ * @group locale
  */
 class CRM_Core_I18n_LocaleTest extends CiviUnitTestCase {
 
index 7c395b50730d4c93424e33353208314a51c3e9fb..4949047ac9a387d1182ff393f855d67e9908de0d 100644 (file)
@@ -11,6 +11,7 @@
 /**
  * Class CRM_Core_I18n_SchemaTest
  * @group headless
+ * @group locale
  */
 class CRM_Core_I18n_SchemaTest extends CiviUnitTestCase {
 
index 88e7e9b8fca54f3053850896911e65498c25909f..474eb8800424bcdad546c87ec623bcfa268356a8 100644 (file)
@@ -3,6 +3,7 @@
 /**
  * Class CRM_Core_Smarty_plugins_CrmMoneyTest
  * @group headless
+ * @group locale
  */
 class CRM_Core_Smarty_plugins_CrmMoneyTest extends CiviUnitTestCase {
 
index f1327ee35c99c9e1ff584d4d62a3f9b416c22e82..30428e6c7065947c72b696a2babdb37b78e63ba8 100644 (file)
@@ -276,6 +276,7 @@ class CRM_Mailing_BAO_MailingTest extends CiviUnitTestCase {
    * @throws \CiviCRM_API3_Exception
    * @throws \CRM_Core_Exception
    * @throws \API_Exception
+   * @group locale
    */
   public function testGetRecipientsEmailGroupIncludeExclude(): void {
     // Create contacts
index f4cb5718ee6f4772604fd4823402335322805962..ce47e3b01e5871b0ae7fcd63d05c0543a79275ef 100644 (file)
@@ -3,6 +3,7 @@
 /**
  * Class CRM_Utils_RuleTest
  * @group headless
+ * @group locale
  */
 class CRM_Utils_MoneyTest extends CiviUnitTestCase {
 
index c61f70b2cd5fbd7c66f4d672dd5f6cba0b0dcfd2..93920d8c851ee857a8edadecea3c6d289143eb81 100644 (file)
@@ -20,6 +20,7 @@ use CiviUnitTestCase;
  *
  * @package Civi\Core
  * @group headless
+ * @group locale
  */
 class FormatTest extends CiviUnitTestCase {
 
index 14987ea19a70b226f6995846e30e3126513c41a4..9829235ac4ce7a092dab003c5f24daec7f32f662 100644 (file)
@@ -177,6 +177,9 @@ class TokenProcessorTest extends \CiviUnitTestCase {
     }
   }
 
+  /**
+   * @group locale
+   */
   public function testRenderLocalizedSmarty() {
     \CRM_Utils_Time::setTime('2022-04-08 16:32:04');
     $resetTime = \CRM_Utils_AutoClean::with(['CRM_Utils_Time', 'resetTime']);
index f619443929107ab63824ca1fc0a1235d44f95cc5..1b8dc140188eec2f8d71e4ec4967918ce21e1d48 100644 (file)
@@ -14,6 +14,7 @@
  *
  * @package CiviCRM
  * @group headless
+ * @group locale
  */
 class api_v3_MultilingualTest extends CiviUnitTestCase {
   protected $_apiversion = 3;