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

ReflectionException: Property core\lock\timing_wrapper_lock_factory::$db does not exist in /mod/quiz/report/statistics/tests/test_quiz_statistics_report.php

XMLWordPrintable

      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

      1. Set up unit tests
      2. and run
        vendor/bin/phpunit mod/quiz/report/statistics/tests/test_quiz_statistics_report.php

       

        1. MDL-80738 401.png
          MDL-80738 401.png
          155 kB
        2. MDL-80738 402.png
          MDL-80738 402.png
          158 kB
        3. MDL-80738 403.png
          MDL-80738 403.png
          153 kB
        4. MDL-80738 main.png
          MDL-80738 main.png
          154 kB

            pholden Paul Holden
            андрейусков Андрей Усков
            Mark Johnson Mark Johnson
            Simey Lameze Simey Lameze
            Simey Lameze Simey Lameze
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

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

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