File tree 2 files changed +19
-1
lines changed
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) {
1012
1012
return true ;
1013
1013
}
1014
1014
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
+
1015
1033
}
Original file line number Diff line number Diff line change 6
6
7
7
defined ('MOODLE_INTERNAL ' ) || die;
8
8
9
- $ plugin ->version = 2022111400 ;
9
+ $ plugin ->version = 2022111600 ;
10
10
$ plugin ->requires = 2016052300 ;
11
11
$ plugin ->maturity = MATURITY_STABLE ;
12
12
$ plugin ->release = '4.1.0-dev ' ;
You can’t perform that action at this time.
0 commit comments