mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 09:26:35 +02:00
MDL-59214 webservice: Return calendar type in get_site_info
This commit is contained in:
parent
6bb80a1917
commit
bef5777fc4
4 changed files with 23 additions and 2 deletions
|
@ -122,6 +122,12 @@ class core_webservice_externallib_testcase extends externallib_advanced_testcase
|
|||
$this->assertEquals(true, $siteinfo['usercanmanageownfiles']);
|
||||
|
||||
$this->assertEquals(HOMEPAGE_MY, $siteinfo['userhomepage']);
|
||||
$this->assertEquals($CFG->calendartype, $siteinfo['sitecalendartype']);
|
||||
if (!empty($USER->calendartype)) {
|
||||
$this->assertEquals($USER->calendartype, $siteinfo['usercalendartype']);
|
||||
} else {
|
||||
$this->assertEquals($CFG->calendartype, $siteinfo['usercalendartype']);
|
||||
}
|
||||
|
||||
// Now as admin.
|
||||
$this->setAdminUser();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue