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

Allow asserts for phpunit tests during setUp() stage for setup failures.

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.5
    • 2.3
    • Unit tests

      In a discussion with Petr in MDL-30643, we noted the need for asserts and perhaps some other testing friends at the setUp() stage.

      See point 5 here where trigger_error() was used to test the setup environment.


      This patch only adds unit tests that makes sure that asserts in setUp() do not fail in future PHPUnit versions. It does not change anything.

            skodak Petr Skoda
            nebgor Aparup Banerjee
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Rajesh Taneja Rajesh Taneja
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

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