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

Extend core_privacy_testsuite to check that the database table exists

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.3.5, 3.4
    • Fix Version/s: 3.3.6, 3.4.3
    • Component/s: Privacy
    • Labels:
    • Testing Instructions:
      Hide
      1. Ensure vendor/bin/phpunit privacy/tests/provider_test.php passes. Or if using MDK:

        mdk phpunit -r -u privacy/tests/provider_test.php
        

      2. Edit the class mod_choice\privacy\provider.
      3. Change the value "choice_answers" in "get_metadata" to an invalid table name.
      4. Confirm vendor/bin/phpunit privacy/tests/provider_test.php fails.

      Note: Make sure to revert your changes after the test.

      Show
      Ensure vendor/bin/phpunit privacy/tests/provider_test.php passes. Or if using MDK: mdk phpunit -r -u privacy/tests/provider_test.php Edit the class mod_choice\privacy\provider . Change the value " choice_answers " in " get_metadata " to an invalid table name. Confirm vendor/bin/phpunit privacy/tests/provider_test.php fails. Note: Make sure to revert your changes after the test.
    • Affected Branches:
      MOODLE_33_STABLE, MOODLE_34_STABLE
    • Fixed Branches:
      MOODLE_33_STABLE, MOODLE_34_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-62048_master

      Description

      This will catch typos and ensure we aren't returning invalid metadata.

        Attachments

          Activity

            People

            Assignee:
            markn Mark Nelson
            Reporter:
            markn Mark Nelson
            Peer reviewer:
            Sara Arjona (@sarjona)
            Integrator:
            Jun Pataleta
            Tester:
            Gladys Basiana
            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

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 30 minutes
                30m