| Línea 47... | 
            Línea 47... | 
          
          
            | 47 | 
                 * Test the stats report viewed event.
  | 
            47 | 
                 * Test the stats report viewed event.
  | 
          
          
            | 48 | 
                 *
  | 
            48 | 
                 *
  | 
          
          
            | 49 | 
                 * It's not possible to use the moodle API to simulate the viewing of stats report, so here we
  | 
            49 | 
                 * It's not possible to use the moodle API to simulate the viewing of stats report, so here we
  | 
          
          
            | 50 | 
                 * simply create the event and trigger it.
  | 
            50 | 
                 * simply create the event and trigger it.
  | 
          
          
            | 51 | 
                 */
  | 
            51 | 
                 */
  | 
          
          
            | 52 | 
                public function test_report_viewed() {
  | 
            52 | 
                public function test_report_viewed(): void {
  | 
          
          
            | 53 | 
                    $user = $this->getDataGenerator()->create_user();
  | 
            53 | 
                    $user = $this->getDataGenerator()->create_user();
  | 
          
          
            | 54 | 
                    $course = $this->getDataGenerator()->create_course();
  | 
            54 | 
                    $course = $this->getDataGenerator()->create_course();
  | 
          
          
            | 55 | 
                    $context = \context_course::instance($course->id);
  | 
            55 | 
                    $context = \context_course::instance($course->id);
  | 
          
          
            | Línea 56... | 
            Línea 56... | 
          
          
            | 56 | 
             
  | 
            56 | 
             
  | 
          
          
            | Línea 73... | 
            Línea 73... | 
          
          
            | 73 | 
                 * Test the user stats report viewed event.
  | 
            73 | 
                 * Test the user stats report viewed event.
  | 
          
          
            | 74 | 
                 *
  | 
            74 | 
                 *
  | 
          
          
            | 75 | 
                 * It's not possible to use the moodle API to simulate the viewing of user stats report, so here we
  | 
            75 | 
                 * It's not possible to use the moodle API to simulate the viewing of user stats report, so here we
  | 
          
          
            | 76 | 
                 * simply create the event and trigger it.
  | 
            76 | 
                 * simply create the event and trigger it.
  | 
          
          
            | 77 | 
                 */
  | 
            77 | 
                 */
  | 
          
          
            | 78 | 
                public function test_user_report_viewed() {
  | 
            78 | 
                public function test_user_report_viewed(): void {
  | 
          
          
            | 79 | 
                    $user = $this->getDataGenerator()->create_user();
  | 
            79 | 
                    $user = $this->getDataGenerator()->create_user();
  | 
          
          
            | 80 | 
                    $course = $this->getDataGenerator()->create_course();
  | 
            80 | 
                    $course = $this->getDataGenerator()->create_course();
  | 
          
          
            | 81 | 
                    $context = \context_course::instance($course->id);
  | 
            81 | 
                    $context = \context_course::instance($course->id);
  | 
          
          
            | Línea 82... | 
            Línea 82... | 
          
          
            | 82 | 
             
  | 
            82 | 
             
  |