Uploaded image for project: 'Moodle Community Sites'
  1. Moodle Community Sites
  2. MDLSITE-4144

Recommendation on testing protected methods in unit tests

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Component/s: Coding style
    • Labels:
      None

      Description

      Following big discussion in dev chat, we need to agree what is the recommended way to unittest protected methods (Reflexions or inheritance) and document it in https://docs.moodle.org/dev/Writing_PHPUnit_tests or https://docs.moodle.org/dev/Coding_style

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated: