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

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.3.5, 3.4, 3.5.3, 3.6
    • Fix Version/s: 3.5.4, 3.6.2
    • Component/s: Privacy
    • Labels:
    • Testing Instructions:
      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.
    • Affected Branches:
      MOODLE_33_STABLE, MOODLE_34_STABLE, MOODLE_35_STABLE, MOODLE_36_STABLE
    • Fixed Branches:
      MOODLE_35_STABLE, MOODLE_36_STABLE
    • Epic Link:
    • Pull from Repository:
    • Pull 3.5 Branch:
    • Pull 3.6 Branch:
    • Pull Master Branch:
      MDL-62061-master

      Description

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

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  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