Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-24905 Unit tests fail
  3. MDL-24994

Question unit tests fail, cause fatal error

    XMLWordPrintable

Details

    • Sub-task
    • Resolution: Fixed
    • Blocker
    • None
    • 2.0
    • Questions, Unit tests
    • None
    • MOODLE_20_STABLE

    Description

      Fatal error: Call to undefined method question_numerical_qtype::apply_unit_old() in /fs2/www/html/sm449/coremoodle/question/type/numerical/simpletest/testquestiontype.php on line 134

      Call Stack:
          0.0004     689456   1. {main}() /fs2/www/html/sm449/coremoodle/admin/report/unittest/index.php:0
          1.7281  146008656   2. autogroup_test_coverage->run() /fs2/www/html/sm449/coremoodle/admin/report/unittest/index.php:99
          1.7281  146008656   3. AutoGroupTest->run() /fs2/www/html/sm449/coremoodle/lib/simpletestcoveragelib.php:144
          1.7281  146008800   4. TestSuite->run() /fs2/www/html/sm449/coremoodle/admin/report/unittest/ex_simple_test.php:37
       1417.0300  174421112   5. TestSuite->run() /fs2/www/html/sm449/coremoodle/lib/simpletestlib/test_case.php:620
       1417.0300  174422256   6. SimpleTestCase->run() /fs2/www/html/sm449/coremoodle/lib/simpletestlib/test_case.php:617
       1417.0360  174427552   7. SimpleExceptionTrappingInvoker->invoke() /fs2/www/html/sm449/coremoodle/lib/simpletestlib/test_case.php:148
       1417.0360  174428192   8. SimpleInvokerDecorator->invoke() /fs2/www/html/sm449/coremoodle/lib/simpletestlib/exceptions.php:43
       1417.0360  174428192   9. SimpleErrorTrappingInvoker->invoke() /fs2/www/html/sm449/coremoodle/lib/simpletestlib/invoker.php:137
       1417.0361  174428312  10. SimpleInvokerDecorator->invoke() /fs2/www/html/sm449/coremoodle/lib/simpletestlib/errors.php:53
       1417.0361  174428312  11. SimpleInvoker->invoke() /fs2/www/html/sm449/coremoodle/lib/simpletestlib/invoker.php:137
       1417.0361  174428880  12. question_numerical_qtype_test->test_apply_unit() /fs2/www/html/sm449/coremoodle/lib/simpletestlib/invoker.php:72

      Attachments

        Activity

          People

            quen Sam Marshall
            quen Sam Marshall
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Clockify

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