Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-4298

Unit test BAO/Member/Membership.test fails

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Fixed/Completed
    • Affects Version/s: 2.2.0, 2.2.1
    • Fix Version/s: 2.2.2
    • Component/s: CiviCRM API
    • Labels:
      None

      Description

      Assertion fails in testGetValues at line 114 because two memberships are created with hard-coded dates which have long since passed. When the membership status is retrieved, oops one membership has expired so the test eats it.

      The fix is to generate membership dates based on the output of time(). Patch to do this is attached.

        Attachments

          Activity

            People

            • Assignee:
              mover Michał Mach
              Reporter:
              dharmatech Dharmatech
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: