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

Incorrect external_api class reference causes users tests failure

XMLWordPrintable

    • MOODLE_402_STABLE
    • MOODLE_402_STABLE
    • Hide
      1. Covered by CI
      2. Ensure the following passes:

        $ bin/moodle-docker-compose exec webserver vendor/bin/phpunit --filter test_update_user_preferences_homepage_permission_callback
        

      Show
      Covered by CI Ensure the following passes: $ bin/moodle-docker-compose exec webserver vendor/bin/phpunit --filter test_update_user_preferences_homepage_permission_callback

      $ bin/moodle-docker-compose exec webserver vendor/bin/phpunit --filter test_update_user_preferences_homepage_permission_callback
      Moodle 4.2dev (Build: 20230120), df502b3e4c86f9d2d5fbe8baa7ab9d5aa9d45fe8
      Php: 7.4.33, mysqli: 5.7.40, OS: Linux 4.15.0-202-generic x86_64
      PHPUnit 9.5.26 by Sebastian Bergmann and contributors.
       
      E                                                                   1 / 1 (100%)
       
      Time: 00:05.446, Memory: 302.00 MB
       
      There was 1 error:
       
      1) core_user\externallib_test::test_update_user_preferences_homepage_permission_callback
      Error: Class 'external_api' not found
       
      /var/www/html/user/tests/externallib_test.php:1703
      /var/www/html/lib/phpunit/classes/advanced_testcase.php:80
       
      ERRORS!
      Tests: 1, Assertions: 0, Errors: 1.
      

      Regression from MDL-76583 (same cause as MDL-76968)

            pholden Paul Holden
            pholden Paul Holden
            Carlos Escobedo Carlos Escobedo
            Jun Pataleta Jun Pataleta
            Jun Pataleta Jun Pataleta
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 41 minutes
                41m

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