fix git code mgmt mistake
authoreileen <eileen@fuzion.co.nz>
Wed, 28 Aug 2013 06:21:02 +0000 (18:21 +1200)
committereileen <eileen@fuzion.co.nz>
Wed, 28 Aug 2013 06:21:02 +0000 (18:21 +1200)
tests/phpunit/api/v3/MembershipTest.php

index ed58352fedd816a598f09192b82478563a2fb6d2..0137833ba72fb18ba9f1f2c12db6f2b376f34c8d 100644 (file)
@@ -181,27 +181,6 @@ class api_v3_MembershipTest extends CiviUnitTestCase {
 
   }
 
-  /**
-   * Test civicrm_membership_get with params not array.
-   * Gets treated as contact_id, memberships expected.
-   */
-  function testGetInSyntax() {
-    $this->_membershipID = $this->contactMembershipCreate($this->_params);
-    $this->_membershipID2 = $this->contactMembershipCreate($this->_params);
-    $this->_membershipID3 = $this->contactMembershipCreate($this->_params);
-    $params = array(
-      'id' => array('IN' => array($this->_membershipID, $this->_membershipID3)),
-    );
-    $membership = $this->callAPISuccess('membership', 'get', $params);
-    $this->assertEquals(2, $membership['count']);
-    $this->assertEquals(array($this->_membershipID, $this->_membershipID3), array_keys($membership['values']));
-    $params = array(
-      'id' => array('NOT IN' => array($this->_membershipID, $this->_membershipID3)),
-    );
-    $membership = $this->callAPISuccess('membership', 'get', $params);
-    $this->assertEquals(1, $membership['count']);
-    $this->assertEquals(array($this->_membershipID2), array_keys($membership['values']));
-  }
   /**
    * Test civicrm_membership_get with params not array.
    * Gets treated as contact_id, memberships expected.