Merge branch 'master' into findById
[civicrm-core.git] / tests / phpunit / CRM / Group / Page / AjaxTest.php
index 67d0b42f001cd4d8887d272d328339b5452a80bd..b62e90a2cb7e53dbdc9b9fd0da2bd59671504d97 100644 (file)
@@ -1,5 +1,9 @@
 <?php
 require_once 'CiviTest/CiviUnitTestCase.php';
+
+/**
+ * Class CRM_Group_Page_AjaxTest
+ */
 class CRM_Group_Page_AjaxTest extends CiviUnitTestCase {
   /**
    * Permissioned group is used both as an active group the contact can see and as a group that allows
@@ -17,6 +21,9 @@ class CRM_Group_Page_AjaxTest extends CiviUnitTestCase {
 
   protected $_params = array();
 
+  /**
+   * @return array
+   */
   function get_info() {
     return array(
       'name' => 'Contact BAOs',
@@ -74,7 +81,7 @@ class CRM_Group_Page_AjaxTest extends CiviUnitTestCase {
     $_REQUEST = $this->_params;
   }
   /**
-   * retrieve groups as 'view all contacts'
+   * Retrieve groups as 'view all contacts'
    */
   function testGroupListViewAllContacts() {
     $this->setPermissionAndRequest('view all contacts');
@@ -85,7 +92,7 @@ class CRM_Group_Page_AjaxTest extends CiviUnitTestCase {
   }
 
   /**
-   * retrieve groups as 'view all contacts' permissioned user
+   * Retrieve groups as 'view all contacts' permissioned user
    * Without setting params the default is both enabled & disabled
    * (if you do set default it is enabled only)
    */
@@ -99,7 +106,7 @@ class CRM_Group_Page_AjaxTest extends CiviUnitTestCase {
   }
 
   /**
-   * retrieve groups as 'view all contacts'
+   * Retrieve groups as 'view all contacts'
    */
   function testGroupListViewAllContactsNotFoundTitle() {
     $this->_params['title'] = 'z';
@@ -108,7 +115,7 @@ class CRM_Group_Page_AjaxTest extends CiviUnitTestCase {
     $this->assertEquals(0, $total);
   }
   /**
-   * retrieve groups as 'edit all contacts'
+   * Retrieve groups as 'edit all contacts'
    */
   function testGroupListEditAllContacts() {
     $this->setPermissionAndRequest('edit all contacts');
@@ -119,7 +126,7 @@ class CRM_Group_Page_AjaxTest extends CiviUnitTestCase {
   }
 
   /**
-   * retrieve groups as 'view all contacts'
+   * Retrieve groups as 'view all contacts'
    */
   function testGroupListViewAllContactsEnabled() {
     $this->_params['status'] = 1;
@@ -131,7 +138,7 @@ class CRM_Group_Page_AjaxTest extends CiviUnitTestCase {
   }
 
   /**
-   * retrieve groups as 'view all contacts'
+   * Retrieve groups as 'view all contacts'
    */
   function testGroupListViewAllContactsDisabled() {
     $this->_params['status'] = 2;
@@ -143,7 +150,7 @@ class CRM_Group_Page_AjaxTest extends CiviUnitTestCase {
   }
 
   /**
-   * retrieve groups as 'view all contacts'
+   * Retrieve groups as 'view all contacts'
    */
   function testGroupListViewAllContactsDisabledNotFoundTitle() {
     $this->_params['status'] = 2;
@@ -155,7 +162,7 @@ class CRM_Group_Page_AjaxTest extends CiviUnitTestCase {
   }
 
   /**
-   * retrieve groups as 'view all contacts'
+   * Retrieve groups as 'view all contacts'
    */
   function testGroupListViewAllContactsDisabledFoundTitle() {
     $this->_params['status'] = 2;
@@ -167,7 +174,7 @@ class CRM_Group_Page_AjaxTest extends CiviUnitTestCase {
   }
 
   /**
-   * retrieve groups as 'view all contacts'
+   * Retrieve groups as 'view all contacts'
    */
   function testGroupListViewAllContactsAll() {
     $this->_params['status'] = 3;
@@ -182,7 +189,7 @@ class CRM_Group_Page_AjaxTest extends CiviUnitTestCase {
 
 
   /**
-   * retrieve groups as 'view all contacts'
+   * Retrieve groups as 'view all contacts'
    */
   function testGroupListAccessCiviCRM() {
     $this->setPermissionAndRequest('access CiviCRM');
@@ -193,7 +200,7 @@ class CRM_Group_Page_AjaxTest extends CiviUnitTestCase {
     $this->assertEquals(0, $total, 'Total returned should be accurate based on permissions');
   }
   /**
-   * retrieve groups as 'view all contacts'
+   * Retrieve groups as 'view all contacts'
    */
   function testGroupListAccessCiviCRMEnabled() {
     $this->_params['status'] = 1;
@@ -203,7 +210,7 @@ class CRM_Group_Page_AjaxTest extends CiviUnitTestCase {
     $this->assertEquals(0, $total, 'Total returned should be accurate based on permissions');
   }
   /**
-   * retrieve groups as 'view all contacts'
+   * Retrieve groups as 'view all contacts'
    */
   function testGroupListAccessCiviCRMDisabled() {
     $this->_params['status'] = 2;
@@ -214,7 +221,7 @@ class CRM_Group_Page_AjaxTest extends CiviUnitTestCase {
   }
 
   /**
-   * retrieve groups as 'view all contacts'
+   * Retrieve groups as 'view all contacts'
    */
   function testGroupListAccessCiviCRMAll() {
     $this->_params['status'] = 2;
@@ -225,7 +232,7 @@ class CRM_Group_Page_AjaxTest extends CiviUnitTestCase {
   }
 
   /**
-   * retrieve groups as 'view all contacts'
+   * Retrieve groups as 'view all contacts'
    */
   function testGroupListAccessCiviCRMFound() {
     $this->_params['title'] = 'p';
@@ -236,7 +243,7 @@ class CRM_Group_Page_AjaxTest extends CiviUnitTestCase {
   }
 
   /**
-   * retrieve groups as 'view all contacts'
+   * Retrieve groups as 'view all contacts'
    */
   function testGroupListAccessCiviCRMNotFound() {
     $this->_params['title'] = 'z';