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

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

    XMLWordPrintable

    Details

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                1 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  11/Sep/17