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

PHP UNIT tests fail if an activity module doesn't have test module generator

XMLWordPrintable

    • MOODLE_33_STABLE
    • MDL-59474-master-fix-calendar-tests
    • Hide

      Steps to test:

      1. Get clean moodle code 
      2. Get activity module without generator lib e.g. mod_lightboxgallery (git clone -b MOODLE_31_STABLE git@github.com:netspotau/moodle-mod_lightboxgallery.git mod/lightboxgallery)
      3. Configure your instance for running unit tests https://docs.moodle.org/dev/PHPUnit
      4. Run tests vendor/bin/phpunit core_calendar_container_testcase calendar/tests/container_test.php

      Expected: test passed.

      Show
      Steps to test: Get clean moodle code  Get activity module without generator lib e.g. mod_lightboxgallery (git clone -b MOODLE_31_STABLE git@github.com:netspotau/moodle-mod_lightboxgallery.git mod/lightboxgallery) Configure your instance for running unit tests https://docs.moodle.org/dev/PHPUnit Run tests vendor/bin/phpunit core_calendar_container_testcase calendar/tests/container_test.php Expected: test passed.

      Running PHP UNIT tests on instance with activity module(s) which doesn't have test module generator implemented fail with:

      coding_exception: Coding error detected, it must be fixed by a programmer: Component mod_name does not support generators yet.

       

            dmitriim Dmitrii Metelkin
            dmitriim Dmitrii Metelkin
            Ankit Agarwal Ankit Agarwal
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

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