-
Bug
-
Resolution: Fixed
-
Major
-
4.1.8
Hello!
test_quiz_statistics_report PHPUnit test has an error.
Error
ES 2 / 2 (100%)
Time: 00:00.006, Memory: 58.50 MB
There was 1 error:
1) quiz_statistics\test_quiz_statistics_report::test_get_all_stats_and_analysis_locking
ReflectionException: Property core\lock\timing_wrapper_lock_factory::$db does not exist in /var/opt/otlamp/m41/community41/www/htdocs/mod/quiz/report/statistics/tests/test_quiz_statistics_report.php:67
Stack trace:
#0 /var/opt/otlamp/m41/community41/www/htdocs/mod/quiz/report/statistics/tests/test_quiz_statistics_report.php(67): ReflectionProperty->__construct()
#1 /var/opt/otlamp/m41/community41/www/htdocs/vendor/phpunit/phpunit/src/Framework/TestSuite.php(619): quiz_statistics\test_quiz_statistics_report::setUpBeforeClass()
#2 /var/opt/otlamp/m41/community41/www/htdocs/vendor/phpunit/phpunit/src/TextUI/TestRunner.php(653): PHPUnit\Framework\TestSuite->run()
#3 /var/opt/otlamp/m41/community41/www/htdocs/vendor/phpunit/phpunit/src/TextUI/Command.php(144): PHPUnit\TextUI\TestRunner->run()
#4 /var/opt/otlamp/m41/community41/www/htdocs/vendor/phpunit/phpunit/src/TextUI/Command.php(97): PHPUnit\TextUI\Command->run()
#5 phpvfscomposer:///var/opt/otlamp/m41/community41/www/htdocs/vendor/phpunit/phpunit/phpunit(97): PHPUnit\TextUI\Command::main()
#6 /var/opt/otlamp/m41/community41/www/htdocs/vendor/bin/phpunit(118): include('phpvfscomposer:...')
#7 {main}
ERRORS!
Tests: 2, Assertions: 0, Errors: 1, Skipped: 1.
Steps
- Set up unit tests
- and run
vendor/bin/phpunit mod/quiz/report/statistics/tests/test_quiz_statistics_report.php
- is a regression caused by
-
MDL-78580 Add locking to quiz statistics calculation to prevent database deadlocks
- Closed