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

Review incorrect phpunit_util uses and replace them by correct advanced_testcase extra methods

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.8.9, 2.9.3
    • 2.8.7, 2.9.1, 3.0
    • Unit tests

      While reviewing MDL-46239 it was detected that various "low level" phpunit_util::xxxxx() methods were being used in testcases.

      Looking globally lots of those uses were found, for example:

      $ ag 'reset_debugging|get_debugging_messages' | wc -l
      72
      

      This issue is about to replace all them by the higher level extra function available @ advanced_testcase. Reference:

      https://docs.moodle.org/dev/PHPUnit_integration#Extra_methods

      Ciao

            rajeshtaneja Rajesh Taneja
            stronk7 Eloy Lafuente (stronk7)
            Simey Lameze Simey Lameze
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Votes:
            0 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.