Uploaded image for project: 'Plugins'
  1. Plugins
  2. CONTRIB-5552

Add support for config.php parameter to indicate role short name overrides for testing.

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.8.2
    • 2.8.2
    • Set: Dataform
    • None
    • MOODLE_28_STABLE
    • MOODLE_28_STABLE

      Some moodle admins may override the standard role names and shortnames. In such cases tests that perform enrollments by the standard role names will not work. It is possible to add config parameter in config.php to indicate the role short name overrides for testing. For example:

       
      define('PHPUNIT_ROLENAME_EDITINGTEACHER', 'instructor');
      

      In tests we can get the actual role shortname by calling a designated helper method, in following way:

      $teacherroleshortname = \mod_dataform\helper\testing::get_role_shortname('editingteacher');
      

            itamart Itamar Tzadok (Inactive)
            itamart Itamar Tzadok (Inactive)
            Itamar Tzadok Itamar Tzadok (Inactive)
            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.