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

PHPUnit failures on Windows introduced during the Moodle 4.5 development cycle

XMLWordPrintable

    • MOODLE_405_STABLE
    • MOODLE_405_STABLE
    • MDL-83293-main
    • Hide
      1. Open a terminal and go to your Moodle's root folder.
      2. Set up PHPUnit.

        php admin/tool/phpunit/cli/init.php
        

      3. Run the router test.

        ./vendor/bin/phpunit lib/tests/router_test.php
        

      4. Confirm that it passes on both Linux and Windows
      Show
      Open a terminal and go to your Moodle's root folder. Set up PHPUnit. php admin /tool/phpunit/cli/init .php Run the router test. . /vendor/bin/phpunit lib /tests/router_test .php Confirm that it passes on both Linux and Windows
    • 2
    • Team Hedgehog 2024 Sprint 3.3

      We have the following PHPUnit failures on Windows that were introduced during the 4.5 development cycle:

      9) core\router_test::test_basepath_guessed_rphp
      Failed asserting that two strings are equal.
      --- Expected
      +++ Actual
      @@ @@
      -'/moodle/r.php'
      +'/moodle'
       
      C:\Users\Administrator\Desktop\MoodleWindows\server\moodle\lib\tests\router_test.php:107
      C:\Users\Administrator\Desktop\MoodleWindows\server\moodle\lib\phpunit\classes\advanced_testcase.php:76
      

            jpataleta Jun Pataleta
            jpataleta Jun Pataleta
            David Woloszyn David Woloszyn
            Andrew Lyons Andrew Lyons
            CiBoT CiBoT
            Votes:
            2 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 hours, 4 minutes
                2h 4m

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