Moodle
  1. Moodle
  2. MDL-26570

fatal error while running unit tests.

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 2.0.2
    • Fix Version/s: 2.0.3
    • Component/s: Navigation, Unit tests
    • Labels:
      None
    • Affected Branches:
      MOODLE_20_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE
    • Rank:
      16341

      Description

      just ran default settings for unit test.

      at the end:

      Fatal error: Call to undefined method object::get_url() in C:\server\workspace\mssql\lib\navigationlib.php on line 1452

      Fatal error: Call to undefined method object::get_url() in /home/aparup/mcode/m20/mysql/moodle/lib/navigationlib.php on line 1452 Call Stack: 0.0004 693168
      1.

      {main}

      () /home/aparup/mcode/m20/mysql/moodle/admin/report/unittest/index.php:0 2.4645 157363056
      2. autogroup_test_coverage->run() /home/aparup/mcode/m20/mysql/moodle/admin/report/unittest/index.php:100 2.4645 157363056
      3. AutoGroupTest->run() /home/aparup/mcode/m20/mysql/moodle/lib/simpletestcoveragelib.php:144 2.4645 157363264
      4. TestSuite->run() /home/aparup/mcode/m20/mysql/moodle/admin/report/unittest/ex_simple_test.php:37 37.6135 173426896
      5. TestSuite->run() /home/aparup/mcode/m20/mysql/moodle/lib/simpletestlib/test_case.php:620 37.6679 174570656
      6. SimpleTestCase->run() /home/aparup/mcode/m20/mysql/moodle/lib/simpletestlib/test_case.php:617 37.6985 175322704
      7. SimpleExceptionTrappingInvoker->invoke() /home/aparup/mcode/m20/mysql/moodle/lib/simpletestlib/test_case.php:148 37.6985 175323560
      8. SimpleInvokerDecorator->invoke() /home/aparup/mcode/m20/mysql/moodle/lib/simpletestlib/exceptions.php:43 37.6985 175323560
      9. SimpleErrorTrappingInvoker->invoke() /home/aparup/mcode/m20/mysql/moodle/lib/simpletestlib/invoker.php:137 37.6985 175323776
      10. SimpleInvokerDecorator->invoke() /home/aparup/mcode/m20/mysql/moodle/lib/simpletestlib/errors.php:53 37.6985 175323776
      11. SimpleInvoker->invoke() /home/aparup/mcode/m20/mysql/moodle/lib/simpletestlib/invoker.php:137 37.7005 175482824
      12. global_navigation_test->test_load_section_activities() /home/aparup/mcode/m20/mysql/moodle/lib/simpletestlib/invoker.php:72 37.7210 175892416
      13. exposed_global_navigation->exposed_load_section_activities() /home/aparup/mcode/m20/mysql/moodle/lib/simpletest/testnavigationlib.php:373 37.7210 175893168
      14. exposed_global_navigation->__call() /home/aparup/mcode/m20/mysql/moodle/lib/simpletest/testnavigationlib.php:0 37.7210 175893952
      15. call_user_func_array() /home/aparup/mcode/m20/mysql/moodle/lib/simpletest/testnavigationlib.php:254 37.7210 175894696
      16. global_navigation->load_section_activities() /home/aparup/mcode/m20/mysql/moodle/lib/simpletest/testnavigationlib.php:0

        Issue Links

          Activity

          Hide
          Sam Hemelryk added a comment -

          PULL-481 created to see this fix go in, providing it gets accepted it will be fixed in the next weekly.

          Cheers
          Sam

          Show
          Sam Hemelryk added a comment - PULL-481 created to see this fix go in, providing it gets accepted it will be fixed in the next weekly. Cheers Sam

            People

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

              Dates

              • Created:
                Updated:
                Resolved: