/**
  * Method to test table report method: format_default_data()
  * @param mixed $inputdata The input field data, scalar unless multi-valued array
  * @param string $expected The expected output string
  * @dataProvider format_default_data_dataprovider
  * @uses $CFG
  */
 public function test_format_default_data($inputdata, $expected) {
     global $CFG;
     static $report = null;
     if (!$report) {
         require_once($CFG->dirroot.'/local/elisreports/instances/course_progress_summary/course_progress_summary_report.class.php');
         $report = new course_progress_summary_report('test_course_progress_summary');
     }
     $this->assertEquals($expected, $report->format_default_data($inputdata));
 }
    /**
     * Test course progress summary report.
     * @uses $CFG
     */
    public function test_course_progress_summary() {
        global $CFG;
        require_once(dirname(__FILE__).'/../instances/course_progress_summary/course_progress_summary_report.class.php');
        $report = new course_progress_summary_report('test_course_progress_summary');

        // Test context in get_columns.
        $columns = $report->get_columns();
        $this->assertNotEmpty($columns);
    }