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

Any unit test that calls createArrayDataSet() fails

XMLWordPrintable

      mod_collaborate has a unit test that does exactly this. And it fails with:

       

      1) mod_collaborate_recording_counter_testcase::test_get_recording_counts
      Error: Class 'PHPUnit\DbUnit\DataSet\DefaultTableMetaData' not found
      /home/marcus/workspace/latrobe/lib/phpunit/classes/arraydataset.php:61
      /home/marcus/workspace/latrobe/lib/phpunit/classes/advanced_testcase.php:190
      /home/marcus/workspace/latrobe/mod/collaborate/tests/recording_counter_test.php:56
      /home/marcus/workspace/latrobe/lib/phpunit/classes/advanced_testcase.php:80

       

      To re-run: vendor/bin/phpunit "mod_collaborate_recording_counter_testcase" mod/collaborate/tests/recording_counter_test.php

       

      We first thought the issue was with a non-properly installed DbUnit but upon digging further, it's a typo in core which is causing this issue.

            marcusboon Marcus Boon
            marcusboon Marcus Boon
            Andrew Lyons Andrew Lyons
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Shamim Rezaie Shamim Rezaie
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

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