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

Unit test failure on qtype_ordering\questiontype_test::test_xml_export on Oracle

XMLWordPrintable

    • 3
    • Team Alpha - Sprint 4 I1-2024

      This is a regression from MDL-79863 that has been integrated last week and it only happens on Oracle database, see this build

      Console output

      1) qtype_ordering\questiontype_test::test_xml_export
      Failed asserting that two strings are equal.
      --- Expected
      +++ Actual
      @@ @@
             <text>That is not right at all.</text>\n
           </incorrectfeedback>\n
           <shownumcorrect>1</shownumcorrect>\n
      -    <answer fraction="1.0000000" format="html">\n
      +    <answer fraction="1" format="html">\n
             <text>Modular</text>\n
             <feedback format="html">\n
               <text>Modular is correct.</text>\n
             </feedback>\n
           </answer>\n
      -    <answer fraction="2.0000000" format="html">\n
      +    <answer fraction="2" format="html">\n
             <text>Object</text>\n
             <feedback format="html">\n
               <text>Object is correct.</text>\n
             </feedback>\n
           </answer>\n
      -    <answer fraction="3.0000000" format="html">\n
      +    <answer fraction="3" format="html">\n
             <text>Oriented</text>\n
             <feedback format="html">\n
               <text>Oriented is correct.</text>\n
             </feedback>\n
           </answer>\n
      -    <answer fraction="4.0000000" format="html">\n
      +    <answer fraction="4" format="html">\n
             <text>Dynamic</text>\n
             <feedback format="html">\n
               <text>Dynamic is correct.</text>\n
             </feedback>\n
           </answer>\n
      -    <answer fraction="5.0000000" format="html">\n
      +    <answer fraction="5" format="html">\n
             <text>Learning</text>\n
             <feedback format="html">\n
               <text>Learning is correct.</text>\n
             </feedback>\n
           </answer>\n
      -    <answer fraction="6.0000000" format="html">\n
      +    <answer fraction="6" format="html">\n
             <text>Environment</text>\n
             <feedback format="html">\n
               <text>Environment is correct.</text>\n
       
      /var/www/html/question/type/ordering/tests/questiontype_test.php:82
      /var/www/html/question/type/ordering/tests/questiontype_test.php:298
      /var/www/html/lib/phpunit/classes/advanced_testcase.php:69
      

      Also noted that running the unit test on the whole file question/type/ordering/tests/questiontype_test.php also shows some errors:

      1) qtype_ordering\questiontype_test::test_xml_import
      Error: Class "qformat_xml" not found
       
      /var/www/html/question/type/ordering/tests/questiontype_test.php:252
      /var/www/html/lib/phpunit/classes/advanced_testcase.php:69
       
      2) qtype_ordering\questiontype_test::test_xml_import_long
      Error: Class "qformat_xml" not found
       
      /var/www/html/question/type/ordering/tests/questiontype_test.php:264
      /var/www/html/lib/phpunit/classes/advanced_testcase.php:69
       
      3) qtype_ordering\questiontype_test::test_xml_export
      Error: Class "qformat_xml" not found
      

            Geshoski Mihail Geshoski
            lameze Simey Lameze
            Tim Hunt Tim Hunt
            Sara Arjona (@sarjona) Sara Arjona (@sarjona)
            CiBoT CiBoT
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 4 hours, 48 minutes
                4h 48m

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