stronk7

Untitled

Jul 12th, 2022
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.42 KB | None | 0 0
  1. WITHOUT CHANGES:
  2.  
  3. $ git diff
  4. <<nothing>>
  5.  
  6. $ bin/moodle-docker-compose exec webserver vendor/bin/phpunit --filter test_average_number_of_participants
  7. Moodle 4.1dev (Build: 20220707), a23f0bff3e1f386ceeb686e1d7ce28d8735769e0
  8. Php: 7.4.30, oci: 21.0.0.0.0, OS: Linux 5.10.104-linuxkit x86_64
  9. PHPUnit 9.5.13 by Sebastian Bergmann and contributors.
  10.  
  11. F 1 / 1 (100%)
  12.  
  13. Time: 00:00.952, Memory: 292.00 MB
  14.  
  15. There was 1 failure:
  16.  
  17. 1) core_course\courselib_test::test_average_number_of_participants
  18. Failed asserting that 0.0 matches expected 2.
  19.  
  20. WITH ONE SPACE CHANGE:
  21.  
  22. $ git diff
  23. diff --git a/course/lib.php b/course/lib.php
  24. index 37c89ebc3e4..4e01717e522 100644
  25. --- a/course/lib.php
  26. +++ b/course/lib.php
  27. @@ -2509,7 +2509,7 @@ function average_number_of_participants(bool $onlyactive = false, int $lastlogin
  28. }
  29.  
  30. $sql = "SELECT COUNT(*)
  31. - FROM ($sql) total";
  32. + FROM ($sql) total";
  33.  
  34. $ bin/moodle-docker-compose exec webserver vendor/bin/phpunit --filter test_average_number_of_participants
  35. Moodle 4.1dev (Build: 20220707), a23f0bff3e1f386ceeb686e1d7ce28d8735769e0
  36. Php: 7.4.30, oci: 21.0.0.0.0, OS: Linux 5.10.104-linuxkit x86_64
  37. PHPUnit 9.5.13 by Sebastian Bergmann and contributors.
  38.  
  39. . 1 / 1 (100%)
  40.  
  41. Time: 00:00.927, Memory: 292.00 MB
  42.  
  43. OK (1 test, 17 assertions)
Advertisement
Add Comment
Please, Sign In to add comment