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

get_groups(), get_groups_all() and groups_get_user_groups are not covered by unit tests

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.6.5, 2.7.2
    • 2.7
    • Unit tests
    • 8
    • BACKEND Sprint 15

      The following functions are used all over Moodle but are not currently covered by unit tests. Behat tests should cover them to a large degree but it would be nice to have additional assurance.

      1) get_groups_all() and get_groups($groupingid = 0) in modinfolib.php do not appear to be covered at all in modinfolib_test.php.

      2) groups_get_user_groups() in grouplib.php. groups_get_user_groups() is itself not tested at all in grouplib_test.php

            lameze Simey Lameze
            andyjdavis Andrew Davis
            Dan Poltawski Dan Poltawski
            Marina Glancy Marina Glancy
            Ankit Agarwal Ankit Agarwal
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

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