$this->callAPISuccess('relationship_type', 'delete', array('id' => 20));
}
- /**
- * Test CRM_Member_Form_Membership::buildQuickForm()
- */
- //function testCRMMemberFormMembershipBuildQuickForm()
- //{
- // throw new PHPUnit_Framework_IncompleteTestError( "not implemented" );
- //}
-
/**
* Test CRM_Member_Form_Membership::formRule() with a parameter
* that has an empty contact_select_id value
* @return \CRM_Member_Form_Membership
*/
protected function getForm() {
+ if (isset($_REQUEST['cid'])) {
+ unset($_REQUEST['cid']);
+ }
$form = new CRM_Member_Form_Membership();
$_SERVER['REQUEST_METHOD'] = 'GET';
$form->controller = new CRM_Core_Controller();