File tree Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -1012,4 +1012,22 @@ public function close_notification_app(string $title) {
10121012 return true ;
10131013 }
10141014
1015+ /**
1016+ * View a specific month in the calendar in the app.
1017+ *
1018+ * @When /^I open the calendar for "(?P<month>\d+)" "(?P<year>\d+)" in the app$/
1019+ * @param int $month the month selected as a number
1020+ * @param int $year the four digit year
1021+ */
1022+ public function i_open_the_calendar_for ($ month , $ year ) {
1023+ $ options = json_encode ([
1024+ 'params ' => [
1025+ 'month ' => $ month ,
1026+ 'year ' => $ year ,
1027+ ],
1028+ ]);
1029+
1030+ $ this ->zone_js ("navigator.navigateToSitePath('/calendar/index', $ options) " );
1031+ }
1032+
10151033}
Original file line number Diff line number Diff line change 66
77defined ('MOODLE_INTERNAL ' ) || die;
88
9- $ plugin ->version = 2022111400 ;
9+ $ plugin ->version = 2022111600 ;
1010$ plugin ->requires = 2016052300 ;
1111$ plugin ->maturity = MATURITY_STABLE ;
1212$ plugin ->release = '4.1.0-dev ' ;
You can’t perform that action at this time.
0 commit comments