Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-63670

Message unit tests cause duplicate tests

XMLWordPrintable

      message/tests/api_test.php and message/tests/events_test.php both extend core_message_messagelib_testcase which also has its own tests.
      As a result, those tests are incorporated into all three files and are run three times.

      Additionally these tests contain a setUp which run resetAfterTest() which means that it is not possible to write tests which do not need a reset.

            dobedobedoh Andrew Lyons
            dobedobedoh Andrew Lyons
            David Woloszyn David Woloszyn
            Simey Lameze Simey Lameze
            CiBoT CiBoT
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 hours, 21 minutes
                2h 21m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.