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

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.7
    • Fix Version/s: 2.6.5, 2.7.2
    • Component/s: Unit tests
    • Labels:
    • Story Points:
      8
    • Sprint:
      BACKEND Sprint 15

      Description

      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

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              lameze Simey Lameze
              Reporter:
              andyjdavis Andrew Davis
              Peer reviewer:
              Dan Poltawski Dan Poltawski
              Integrator:
              Marina Glancy Marina Glancy
              Tester:
              Ankit Agarwal Ankit Agarwal
              Participants:
              Component watchers:
              Andrew Lyons, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                8/Sep/14