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

Create unit test to check all components

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.3.5, 3.4.2, 3.5
    • Fix Version/s: 3.3.6, 3.4.3
    • Component/s: Privacy
    • Labels:
    • Testing Instructions:
      Hide
      1. Run the newly introduced unit test:

        ./vendor/bin/phpunit privacy/tests/provider_test.php
        

        1. Confirm pass
      2. Open lib/editor/atto/plugins/bold/lang/en/atto_bold.php and remove the string for privacy:metadata
      3. Open lang/en/tag.php and remove the string for privacy:metadata:tag
      4. Open mod/choice/lang/en/choice.php and remove the string for privacy:metadata:choice_answers:choiceid
      5. Re-run the test

        ./vendor/bin/phpunit privacy/tests/provider_test.php
        

        1. Confirm the the test picked up three failures
      Show
      Run the newly introduced unit test: ./vendor/bin/phpunit privacy/tests/provider_test.php Confirm pass Open lib/editor/atto/plugins/bold/lang/en/atto_bold.php and remove the string for privacy:metadata Open lang/en/tag.php and remove the string for privacy:metadata:tag Open mod/choice/lang/en/choice.php and remove the string for privacy:metadata:choice_answers:choiceid Re-run the test ./vendor/bin/phpunit privacy/tests/provider_test.php Confirm the the test picked up three failures
    • Affected Branches:
      MOODLE_33_STABLE, MOODLE_34_STABLE, MOODLE_35_STABLE
    • Fixed Branches:
      MOODLE_33_STABLE, MOODLE_34_STABLE
    • Pull Master Branch:
      MDL-61861-master

      Description

      Related to MDL-61858, but without the final bit failing components which do not implement at all.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              dobedobedoh Andrew Nicols
              Reporter:
              dobedobedoh Andrew Nicols
              Peer reviewer:
              Jake Dallimore
              Integrator:
              Eloy Lafuente (stronk7)
              Tester:
              Simey Lameze
              Participants:
              Component watchers:
              Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                17/May/18