Merge pull request #14639 from colemanw/i18nCleanup
[civicrm-core.git] / tests / phpunit / CRM / Core / Permission / BaseTest.php
index 54e6de6cd9807f8d14d158c9e8b2881108214174..cba315305d5d020ef947441ef720345dd18eb7f0 100644 (file)
@@ -1,14 +1,14 @@
 <?php
 
-require_once 'CiviTest/CiviUnitTestCase.php';
-
 /**
  * Class CRM_Core_Permission_BaseTest
+ * @group headless
  */
 class CRM_Core_Permission_BaseTest extends CiviUnitTestCase {
 
   /**
-   * @return array (0 => input to translatePermission, 1 => expected output from translatePermission)
+   * @return array
+   *   (0 => input to translatePermission, 1 => expected output from translatePermission)
    */
   public function translateData() {
     $cases = array();
@@ -27,8 +27,10 @@ class CRM_Core_Permission_BaseTest extends CiviUnitTestCase {
 
   /**
    * @dataProvider translateData
-   * @param string $input the name of a permission which should be translated
-   * @param string $expected the name of an actual permission (based on translation matrix for "runtime")
+   * @param string $input
+   *   The name of a permission which should be translated.
+   * @param string $expected
+   *   The name of an actual permission (based on translation matrix for "runtime").
    */
   public function testTranslate($input, $expected) {
     $perm = new CRM_Core_Permission_Base();
@@ -39,4 +41,5 @@ class CRM_Core_Permission_BaseTest extends CiviUnitTestCase {
     ));
     $this->assertEquals($expected, $actual);
   }
+
 }