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

isolated unit test failure in core_user\userroleseditable_test::test_update

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 4.2.1
    • 4.2
    • Unit tests
    • MOODLE_402_STABLE
    • MOODLE_402_STABLE
    • Hide

      Unit test run on its own

      1. Run the test without any other tests:

        vendor/bin/phpunit user/tests/userroleseditable_test.php 
        

      Note: This test is not suited to cibot because it must be run as a single test, rather than the entire testsuite which will run the external tests first.

      Show
      Unit test run on its own Run the test without any other tests: vendor/bin/phpunit user/tests/userroleseditable_test.php Note: This test is not suited to cibot because it must be run as a single test, rather than the entire testsuite which will run the external tests first.

      vendor/bin/phpunit user/tests/userroleseditable_test.php 

      Moodle 4.3dev (Build: 20230427), 5252124e35bcc3553d43291d3933ef6fb8b037b8
      Php: 8.1.18, pgsql: 13.7 (Ubuntu 13.7-0ubuntu0.21.10.1), OS: Linux 5.15.0-71-generic x86_64
      PHPUnit 9.5.27 by Sebastian Bergmann and contributors.

      E                                                                   1 / 1 (100%)

      Time: 00:00.149, Memory: 46.50 MB

      There was 1 error:

      1) core_user\userroleseditable_test::test_update
      Error: Class "core_external" not found

      /home/dan/www/moodle/user/classes/output/user_roles_editable.php:155
      /home/dan/www/moodle/user/tests/userroleseditable_test.php:55
      /home/dan/www/moodle/lib/phpunit/classes/advanced_testcase.php:94

       

            danmarsden Dan Marsden
            danmarsden Dan Marsden
            Paul Holden Paul Holden
            Sara Arjona (@sarjona) Sara Arjona (@sarjona)
            Ron Carl Alfon Yu Ron Carl Alfon Yu
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 23 minutes
                23m

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