From b01048070f04144a6a212817d780bd02f4e2860c Mon Sep 17 00:00:00 2001 From: eileen Date: Thu, 14 Feb 2019 07:03:39 +1300 Subject: [PATCH] Attempt to fix unrelated test fail This test keeps failing on an unrelated test - perhaps ['cid'] is being set & somehow retained - could explain other intermittents --- tests/phpunit/CRM/Member/Form/MembershipTest.php | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/tests/phpunit/CRM/Member/Form/MembershipTest.php b/tests/phpunit/CRM/Member/Form/MembershipTest.php index 8535fb2ea5..4348bc26ad 100644 --- a/tests/phpunit/CRM/Member/Form/MembershipTest.php +++ b/tests/phpunit/CRM/Member/Form/MembershipTest.php @@ -144,14 +144,6 @@ class CRM_Member_Form_MembershipTest extends CiviUnitTestCase { $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 @@ -1112,6 +1104,9 @@ Expires: ', * @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(); -- 2.25.1