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

Generator for grade category does not accept all arguments

    XMLWordPrintable

    Details

      Description

      Both behat and unittest. For example this test fails:

       
          public function test_create_grade_category() {
              global $DB, $CFG;
              require_once $CFG->libdir . '/grade/constants.php';
       
              $this->resetAfterTest(true);
              $generator = $this->getDataGenerator();
              $course = $generator->create_course();
              $gradecategory = $generator->create_grade_category(
                      array('courseid' => $course->id, 'aggregation' => GRADE_AGGREGATE_MEDIAN));
              $this->assertEquals(GRADE_AGGREGATE_MEDIAN, $gradecategory->aggregation);
          }
      

        Attachments

          Activity

            People

            • Assignee:
              marina Marina Glancy
              Reporter:
              marina Marina Glancy
              Peer reviewer:
              Damyon Wiese
              Integrator:
              Sam Hemelryk
              Tester:
              CiBoT
              Participants:
              Component watchers:
              Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Jake Dallimore, Jun Pataleta
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                10/Nov/14