@@ -48,10 +48,14 @@ public function test_quizgame_core_calendar_provide_event_action() {
4848 $ this ->setAdminUser ();
4949 // Create the activity.
5050 $ course = $ this ->getDataGenerator ()->create_course ();
51- $ quizgame = $ this ->getDataGenerator ()->create_module ('quizgame ' , ['course ' => $ course ->id ]);
51+ $ quizgame = $ this ->getDataGenerator ()->create_module (
52+ 'quizgame ' ,
53+ ['course ' => $ course ->id ]
54+ );
5255 // Create a calendar event.
5356 $ event = $ this ->create_action_event (
54- $ course ->id , $ quizgame ->id ,
57+ $ course ->id ,
58+ $ quizgame ->id ,
5559 \core_completion \api::COMPLETION_EVENT_TYPE_DATE_COMPLETION_EXPECTED
5660 );
5761 // Create an action factory.
@@ -78,7 +82,8 @@ public function test_quizgame_core_calendar_provide_event_action_for_non_user()
7882 $ quizgame = $ this ->getDataGenerator ()->create_module ('quizgame ' , ['course ' => $ course ->id ]);
7983 // Create a calendar event.
8084 $ event = $ this ->create_action_event (
81- $ course ->id , $ quizgame ->id ,
85+ $ course ->id ,
86+ $ quizgame ->id ,
8287 \core_completion \api::COMPLETION_EVENT_TYPE_DATE_COMPLETION_EXPECTED
8388 );
8489 // Now, log out.
@@ -134,14 +139,18 @@ public function test_quizgame_core_calendar_provide_event_action_already_complet
134139 // Create the activity.
135140 $ course = $ this ->getDataGenerator ()->create_course (['enablecompletion ' => 1 ]);
136141 $ quizgame = $ this ->getDataGenerator ()->create_module (
137- 'quizgame ' , ['course ' => $ course ->id ],
138- ['completion ' => 2 , 'completionview ' => 1 , 'completionexpected ' => time () + DAYSECS ]
142+ 'quizgame ' ,
143+ ['course ' => $ course ->id ],
144+ ['completion ' => 2 ,
145+ 'completionview ' => 1 ,
146+ 'completionexpected ' => time () + DAYSECS ]
139147 );
140148 // Get some additional data.
141149 $ cm = get_coursemodule_from_instance ('quizgame ' , $ quizgame ->id );
142150 // Create a calendar event.
143151 $ event = $ this ->create_action_event (
144- $ course ->id , $ quizgame ->id ,
152+ $ course ->id ,
153+ $ quizgame ->id ,
145154 \core_completion \api::COMPLETION_EVENT_TYPE_DATE_COMPLETION_EXPECTED
146155 );
147156 // Mark the activity as completed.
0 commit comments