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

Unit test failure with adminlib_test

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Minor
    • None
    • 4.3.3, 4.4
    • Unit tests
    • MOODLE_403_STABLE, MOODLE_404_STABLE

    Description

      In a clean moodle installation from branch main 

      There is a unit test error when running adminlib_test:

       vendor/bin/phpunit lib/tests/adminlib_test.php
      Moodle 4.4dev (Build: 20240112), 580c009cacbd1093037599b2b92716154199a77e
      Php: 8.1.26, pgsql: 14.0 (Debian 14.0-1.pgdg110+1), OS: Linux 6.5.0-14-generic x86_64
      PHPUnit 9.5.28 by Sebastian Bergmann and contributors.................................E.                                34 / 34 (100%)Time: 00:02.789, Memory: 109.00 MBThere was 1 error:1) core\adminlib_test::test_admin_output_new_settings_by_page
      Error: Call to undefined function course_get_format()/var/www/mdlmain/lib/adminlib.php:5056
      /var/www/mdlmain/lib/tests/adminlib_test.php:143
      /var/www/mdlmain/lib/phpunit/classes/advanced_testcase.php:69ERRORS!
      Tests: 34, Assertions: 38, Errors: 1.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              carlosarcelopera Carlos ArceLopera
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Clockify

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