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

Unit test failure - moodle_content_writer_test::test_export_user_preference_unescaped_unicode with data set "Unicode" ('ةكءيٓ‌پچژکگیٹڈڑہھےâîûğŞAaÇÖáǽ你好!')

XMLWordPrintable

    • MOODLE_36_STABLE
    • MOODLE_34_STABLE, MOODLE_35_STABLE
    • MDL-63660-master
    • Hide

      (Copied from MDL-62491)

      In all branche (34, 35 & master):

      Basic export

      1. Create course, add some activities.
      2. Log in as a student and complete these activities.
      3. Download and run the test script to generate a file to download.

        php testexport.php --userid=3
        

        (Make sure to change the user id to a real user ID.)

      4. Visit the location for running the script.
      5. Ensure that there is an index.html file.
      6. Check that a page is displayed with navigation section on the left and a main content section in the middle.
      7. Browse the navigation and check that the files load up with the appropriate information.

      Right to Left

      1. Set up a right to left language such as Hebrew.
        1. Go to "Site administration > Language > Language packs".
        2. Select the language pack with (he) and press the "install selected language pack(s)".
      2. Log in as a student.
      3. Go to the preferences page.
      4. Under "user account" click Preferred language and set to Hebrew.
      5. Run the testexport script to export the user data. (As mentioned in step 3 of the "basic export" test)
      6. Go to the index.html file and open it.
      7. Ensure That everything that was on the left is now on the right.
      8. Check The navigation and see that it still works.
      Show
      (Copied from MDL-62491 ) In all branche (34, 35 & master): Basic export Create course, add some activities. Log in as a student and complete these activities. Download and run the test script to generate a file to download. php testexport.php --userid=3 (Make sure to change the user id to a real user ID.) Visit the location for running the script. Ensure that there is an index.html file. Check that a page is displayed with navigation section on the left and a main content section in the middle. Browse the navigation and check that the files load up with the appropriate information. Right to Left Set up a right to left language such as Hebrew. Go to "Site administration > Language > Language packs". Select the language pack with (he) and press the "install selected language pack(s)". Log in as a student. Go to the preferences page. Under "user account" click Preferred language and set to Hebrew. Run the testexport script to export the user data. (As mentioned in step 3 of the "basic export" test) Go to the index.html file and open it. Ensure That everything that was on the left is now on the right. Check The navigation and see that it still works.

      The test was introduced in MDL-62491.

      Copying message from Renaat Debleu in https://tracker.moodle.org/browse/MDL-62491?focusedCommentId=637688&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-637688: "phpunit tests now have SSL Handshake timeouts. Perhaps the link to "https://www.moodle.org" in privacy/templates/htmlpage.mustache file should be modified to "https://moodle.org""

      1) moodle_content_writer_test::test_export_user_preference_unescaped_unicode with data set "Unicode" ('ةكءيٓ‌پچژکگیٹڈڑہھےâîûğŞAaÇÖáǽ你好!')
      file_put_contents(): SSL: Connection reset by peer
      /home/travis/build/kabalin/moodle/privacy/classes/local/request/moodle_content_writer.php:734
      /home/travis/build/kabalin/moodle/privacy/classes/local/request/moodle_content_writer.php:643
      /home/travis/build/kabalin/moodle/privacy/classes/local/request/moodle_content_writer.php:680
      /home/travis/build/kabalin/moodle/privacy/tests/moodle_content_writer_test.php:1136
      /home/travis/build/kabalin/moodle/privacy/tests/moodle_content_writer_test.php:948
      /home/travis/build/kabalin/moodle/lib/phpunit/classes/advanced_testcase.php:80
      

            marxjohnson Mark Johnson
            dmonllao David Monllaó
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Jun Pataleta Jun Pataleta
            Anna Carissa Sadia Anna Carissa Sadia
            Votes:
            2 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:

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

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