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

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.5.4, 3.6.2
    • 3.3.5, 3.4, 3.5.3, 3.6
    • 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.

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

        1. created_folders.png
          46 kB
          Mark Nelson
        2. image-2018-12-12-10-59-22-144.png
          139 kB
          Janelle Barcega

            abgreeve Adrian Greeve
            markn Mark Nelson
            Glyn (Mathew) May Glyn (Mathew) May
            Jun Pataleta Jun Pataleta
            Janelle Barcega Janelle Barcega
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

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

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.