tests/phpunit/** - Remove unnecessary "require_once" statements
[civicrm-core.git] / tests / phpunit / CRM / Contact / BAO / GroupContactTest.php
index 7f85268a9cef64b4de419ec187f90c093901730d..ecf19d76d8865628fc672d827b567068b2e3dd19 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /*
  +--------------------------------------------------------------------+
- | CiviCRM version 4.6                                                |
+ | CiviCRM version 4.7                                                |
  +--------------------------------------------------------------------+
  | Copyright CiviCRM LLC (c) 2004-2015                                |
  +--------------------------------------------------------------------+
@@ -25,8 +25,6 @@
  +--------------------------------------------------------------------+
  */
 
-
-require_once 'CiviTest/CiviUnitTestCase.php';
 require_once 'CiviTest/Contact.php';
 
 /**
@@ -46,13 +44,14 @@ class CRM_Contact_BAO_GroupContactTest extends CiviUnitTestCase {
 
   /**
    * Tears down the fixture, for example, closes a network connection.
+   *
    * This method is called after a test is executed.
    */
   protected function tearDown() {
   }
 
   /**
-   * Test case for add( )
+   * Test case for add( ).
    */
   public function testAdd() {
 
@@ -134,7 +133,7 @@ class CRM_Contact_BAO_GroupContactTest extends CiviUnitTestCase {
 
     // Check if searching by parent group  returns both parent and child group contacts
     $searchParams = array(
-      'group' => array($parentGroup->id => 1),
+      'group' => $parentGroup->id,
       'version' => 3,
     );
     $result = civicrm_api('contact', 'get', $searchParams);
@@ -148,7 +147,7 @@ class CRM_Contact_BAO_GroupContactTest extends CiviUnitTestCase {
 
     // Check if searching by child group returns just child group contacts
     $searchParams = array(
-      'group' => array($childGroup->id => 1),
+      'group' => $childGroup->id,
       'version' => 3,
     );
     $result = civicrm_api('contact', 'get', $searchParams);