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

Execution of CRM_Core_BAO_ActionScheduleTest breaks CiviTest/CiviMailUtil.php

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.3.0
    • Fix Version/s: 4.3.0
    • Component/s: Test suite
    • Labels:
      None

      Description

      CRM_Core_BAO_ActionScheduleTest, CRM_Mailing_BAO_SpoolTest, and CRM_Core_Payment_BaseIPNTest perform mock email delivery, and each test passes individually. However, when run as part of CRM_AllTests, the ActionScheduleTest appears to break the SpoolTest and BaseIPNTest.

      ActionScheduleTest uses an older approach to mocking mail delivery; the other two classes use a helper, CiviTest/CiviMailUtils.php, to handle mocking. These appear to be incompatible.

      To reproduce, delete all *Test.php files from tests/phpunit except for the three involved tests – and then run CRM_AllTests.

        Attachments

          Activity

            People

            • Assignee:
              timotten Tim Otten
              Reporter:
              timotten Tim Otten
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: