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

Details

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

    Description

      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

      Attachments

        Issue Links

          Activity

            People

              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

              Dates

                Created:
                Updated:
                Resolved:
                9/Nov/15