From: eileen Date: Wed, 28 Aug 2013 06:21:02 +0000 (+1200) Subject: fix git code mgmt mistake X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=879634e5c355d1a1bcbe90cc1c9f0370b4efffd5;p=civicrm-core.git fix git code mgmt mistake --- diff --git a/tests/phpunit/api/v3/MembershipTest.php b/tests/phpunit/api/v3/MembershipTest.php index ed58352fed..0137833ba7 100644 --- a/tests/phpunit/api/v3/MembershipTest.php +++ b/tests/phpunit/api/v3/MembershipTest.php @@ -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.