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

Running vendor/bin/phpunit privacy/tests/moodle_content_writer_test.php creates an empty folder

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.3.5, 3.4, 3.5.3, 3.6
    • 3.5.4, 3.6.2
    • Privacy
    • MOODLE_33_STABLE, MOODLE_34_STABLE, MOODLE_35_STABLE, MOODLE_36_STABLE
    • MOODLE_35_STABLE, MOODLE_36_STABLE
    • MDL-62061-master
    • Hide

      Unit test

      1. Open your Moodle instance's root folder using a file browser and make sure that there's no folder that begins with "System_.". If there's one already, delete it.
      2. Open your terminal.
      3. Initialise and run PHPUnit:

        $ php admin/tool/phpunit/cli/init.php
        $ vendor/bin/phpunit privacy/tests/moodle_content_writer_test.php
        

        Or if using MDK:

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

      4. Check the root directory and make sure there is no folder that starts with "System_."

      Regression test

      1. Enable data export requests.
        1. Go to Site administration > Users > Privacy and policies > Privacy settings and tick "Create automatic data deletion requests"
      2. Log in as a student and go to the profile page (From the user menu in the top right corner).
      3. Click "Export all of my personal data" in the Privacy and policies section.
      4. Log in as the admin and approve the request.
        1. Go to Site administration > Users > Privacy and policies > Data requests.
      5. Run cron

        php admin/cli/cron.php

      6. Log in as the student and download the data export (should be a notification with a link at the top).
      7. Extract the file and check that all the user information is present, especially files loaded into Moodle.
      Show
      Unit test Open your Moodle instance's root folder using a file browser and make sure that there's no folder that begins with " System_. ". If there's one already, delete it. Open your terminal. Initialise and run PHPUnit: $ php admin/tool/phpunit/cli/init.php $ vendor/bin/phpunit privacy/tests/moodle_content_writer_test.php Or if using MDK: mdk phpunit -r -u privacy/tests/moodle_content_writer_test.php Check the root directory and make sure there is no folder that starts with "System_." Regression test Enable data export requests. Go to Site administration > Users > Privacy and policies > Privacy settings and tick "Create automatic data deletion requests" Log in as a student and go to the profile page (From the user menu in the top right corner). Click "Export all of my personal data" in the Privacy and policies section. Log in as the admin and approve the request. Go to Site administration > Users > Privacy and policies > Data requests. Run cron php admin/cli/cron.php Log in as the student and download the data export (should be a notification with a link at the top). Extract the file and check that all the user information is present, especially files loaded into Moodle.

    Description

      It creates the folder 'System' in the wwwroot with sub-folders.

      Attachments

        Issue Links

          Activity

            People

              abgreeve Adrian Greeve
              markn Mark Nelson
              Mathew May Mathew May
              Jun Pataleta Jun Pataleta
              Janelle Barcega Janelle Barcega
              Andrew Lyons, Adrian Greeve, David Woloszyn, Huong Nguyen, Jake Dallimore, Michael Hawkins, Stevani Andolo
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                14/Jan/19

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 hour, 30 minutes
                  1h 30m