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

calendar/tests/container_test.php wrongly assumes that all modules already support generators

XMLWordPrintable

      Running phpunit tests on a system with non-standard plugins fails on the first plugin that is missing a tests/generator/lib.php file

      The reason is line 299 of calendar/tests/container_test.php

      $module = $this->getDataGenerator()->create_module($modname, ['course' => $course->id]);

      A try... catch or if(this->getDataGenerator()) check will be necessary for contrib plugins.

            marina Marina Glancy
            rdebleu Renaat Debleu
            Ankit Agarwal Ankit Agarwal
            David Monllaó David Monllaó
            Adrian Greeve Adrian Greeve
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

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