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

Moodle page unit tests fail due to MDL-26265 change

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • 2.0.2
    • Libraries
    • None
    • MOODLE_20_STABLE
    • Hide

      1.) Get source with MDL-26265 change.
      2.) Run unit test for {{lib/simpletest/testpagelib_moodlepage.php }}

      Correct result: Tests should pass without errors.

      Show
      1.) Get source with MDL-26265 change. 2.) Run unit test for {{lib/simpletest/testpagelib_moodlepage.php }} Correct result: Tests should pass without errors.

      Exception: lib/simpletest/testpagelib_moodlepage.php / ► moodle_page_cm_test / ► test_set_cm
      Unexpected exception of type [moodle_exception] with message [Invalid course module ID] in [C:\xampp\htdocs\moodle\lib\modinfolib.php line 146]

      • line 805 of \lib\pagelib.php: call to course_modinfo->get_cm()
      • line 588 of \lib\simpletest\testpagelib_moodlepage.php: call to moodle_page->set_cm()
      • line ... of ...
      • line 37 of \admin\report\unittest\ex_simple_test.php: call to TestSuite->run()
      • line ... of ...
      • line 100 of \admin\report\unittest\index.php: call to autogroup_test_coverage->run()

      Exception: lib/simpletest/testpagelib_moodlepage.php / ► moodle_page_cm_test / ► test_setting_cm_sets_context
      Unexpected exception of type [moodle_exception] with message [Invalid course module ID] in [C:\xampp\htdocs\moodle\lib\modinfolib.php line 146]

      • line 805 of \lib\pagelib.php: call to course_modinfo->get_cm()
      • line 626 of \lib\simpletest\testpagelib_moodlepage.php: call to moodle_page->set_cm()
      • line ... of ...
      • line 37 of \admin\report\unittest\ex_simple_test.php: call to TestSuite->run()
      • line ... of ...
      • line 100 of \admin\report\unittest\index.php: call to autogroup_test_coverage->run()

      Exception: lib/simpletest/testpagelib_moodlepage.php / ► moodle_page_cm_test / ► test_activity_record_loaded_if_not_set
      Unexpected exception of type [moodle_exception] with message [Invalid course module ID] in [C:\xampp\htdocs\moodle\lib\modinfolib.php line 146]

      • line 805 of \lib\pagelib.php: call to course_modinfo->get_cm()
      • line 638 of \lib\simpletest\testpagelib_moodlepage.php: call to moodle_page->set_cm()
      • line ... of ...
      • line 37 of \admin\report\unittest\ex_simple_test.php: call to TestSuite->run()
      • line ... of ...
      • line 100 of \admin\report\unittest\index.php: call to autogroup_test_coverage->run()

      Exception: lib/simpletest/testpagelib_moodlepage.php / ► moodle_page_cm_test / ► test_set_activity_record
      Unexpected exception of type [moodle_exception] with message [Invalid course module ID] in [C:\xampp\htdocs\moodle\lib\modinfolib.php line 146]

      • line 805 of \lib\pagelib.php: call to course_modinfo->get_cm()
      • line 646 of \lib\simpletest\testpagelib_moodlepage.php: call to moodle_page->set_cm()
      • line ... of ...
      • line 37 of \admin\report\unittest\ex_simple_test.php: call to TestSuite->run()
      • line ... of ...
      • line 100 of \admin\report\unittest\index.php: call to autogroup_test_coverage->run()

      Exception: lib/simpletest/testpagelib_moodlepage.php / ► moodle_page_cm_test / ► test_cannot_set_inconsistent_activity_record_course
      Unexpected exception of type [moodle_exception] with message [Invalid course module ID] in [C:\xampp\htdocs\moodle\lib\modinfolib.php line 146]

      • line 805 of \lib\pagelib.php: call to course_modinfo->get_cm()
      • line 656 of \lib\simpletest\testpagelib_moodlepage.php: call to moodle_page->set_cm()
      • line ... of ...
      • line 37 of \admin\report\unittest\ex_simple_test.php: call to TestSuite->run()
      • line ... of ...
      • line 100 of \admin\report\unittest\index.php: call to autogroup_test_coverage->run()

      Exception: lib/simpletest/testpagelib_moodlepage.php / ► moodle_page_cm_test / ► test_cannot_set_inconsistent_activity_record_instance
      Unexpected exception of type [moodle_exception] with message [Invalid course module ID] in [C:\xampp\htdocs\moodle\lib\modinfolib.php line 146]

      • line 805 of \lib\pagelib.php: call to course_modinfo->get_cm()
      • line 667 of \lib\simpletest\testpagelib_moodlepage.php: call to moodle_page->set_cm()
      • line ... of ...
      • line 37 of \admin\report\unittest\ex_simple_test.php: call to TestSuite->run()
      • line ... of ...
      • line 100 of \admin\report\unittest\index.php: call to autogroup_test_coverage->run()

      Exception: lib/simpletest/testpagelib_moodlepage.php / ► moodle_page_cm_test / ► test_settin_cm_sets_course
      Unexpected exception of type [moodle_exception] with message [Invalid course module ID] in [C:\xampp\htdocs\moodle\lib\modinfolib.php line 146]

      • line 805 of \lib\pagelib.php: call to course_modinfo->get_cm()
      • line 679 of \lib\simpletest\testpagelib_moodlepage.php: call to moodle_page->set_cm()
      • line ... of ...
      • line 37 of \admin\report\unittest\ex_simple_test.php: call to TestSuite->run()
      • line ... of ...
      • line 100 of \admin\report\unittest\index.php: call to autogroup_test_coverage->run()

      Exception: lib/simpletest/testpagelib_moodlepage.php / ► moodle_page_cm_test / ► test_set_cm_with_course_and_activity_no_db
      Unexpected exception of type [moodle_exception] with message [Invalid course module ID] in [C:\xampp\htdocs\moodle\lib\modinfolib.php line 146]

      • line 805 of \lib\pagelib.php: call to course_modinfo->get_cm()
      • line 690 of \lib\simpletest\testpagelib_moodlepage.php: call to moodle_page->set_cm()
      • line ... of ...
      • line 37 of \admin\report\unittest\ex_simple_test.php: call to TestSuite->run()
      • line ... of ...
      • line 100 of \admin\report\unittest\index.php: call to autogroup_test_coverage->run()

      Exception: lib/simpletest/testpagelib_moodlepage.php / ► moodle_page_cm_test / ► test_get_activity_name
      Unexpected exception of type [moodle_exception] with message [Invalid course module ID] in [C:\xampp\htdocs\moodle\lib\modinfolib.php line 146]

      • line 805 of \lib\pagelib.php: call to course_modinfo->get_cm()
      • line 711 of \lib\simpletest\testpagelib_moodlepage.php: call to moodle_page->set_cm()
      • line ... of ...
      • line 37 of \admin\report\unittest\ex_simple_test.php: call to TestSuite->run()
      • line ... of ...
      • line 100 of \admin\report\unittest\index.php: call to autogroup_test_coverage->run()

            stronk7 Eloy Lafuente (stronk7)
            carsontam Carson Tam
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

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