From fada21995077479f17ced4d7923eb528d3ac1614 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Tue, 29 Apr 2014 11:25:50 -0700 Subject: [PATCH] update membership form rule test --- tests/phpunit/CRM/Member/Form/MembershipTest.php | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/tests/phpunit/CRM/Member/Form/MembershipTest.php b/tests/phpunit/CRM/Member/Form/MembershipTest.php index c79ee6a973..0c59467321 100644 --- a/tests/phpunit/CRM/Member/Form/MembershipTest.php +++ b/tests/phpunit/CRM/Member/Form/MembershipTest.php @@ -332,7 +332,8 @@ class CRM_Member_Form_MembershipTest extends CiviUnitTestCase { function testFormRuleRollingLifetimeEnd() { $unixNow = time(); $unixYearFromNow = $unixNow + (365 * 24 * 60 * 60); - $params = array('join_date' => date('m/d/Y', $unixNow), + $params = array( + 'join_date' => date('m/d/Y', $unixNow), 'start_date' => date('m/d/Y', $unixNow), 'end_date' => date('m/d/Y', $unixYearFromNow @@ -342,12 +343,8 @@ class CRM_Member_Form_MembershipTest extends CiviUnitTestCase { $files = array(); $obj = new CRM_Member_Form_Membership; $rc = $obj->formRule($params, $files, $obj); - $this->assertType('array', $rc, - 'In line ' . __LINE__ - ); - $this->assertTrue(array_key_exists('end_date', $rc), - 'In line ' . __LINE__ - ); + $this->assertType('array', $rc); + $this->assertTrue(array_key_exists('status_id', $rc)); } /** -- 2.25.1