mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
MDL-49425 webservices: Fix unit test dependent of php.ini
This commit is contained in:
parent
67b853ff6b
commit
33d65f705b
1 changed files with 3 additions and 1 deletions
|
@ -119,7 +119,9 @@ class core_webservice_externallib_testcase extends externallib_advanced_testcase
|
|||
}
|
||||
|
||||
$this->assertEquals($userquota, $siteinfo['userquota']);
|
||||
$this->assertEquals($maxbytes, $siteinfo['usermaxuploadfilesize']);
|
||||
// We can use the function for the expectation because USER_CAN_IGNORE_FILE_SIZE_LIMITS is
|
||||
// covered below for admin user. This test is for user not allowed to ignore limits.
|
||||
$this->assertEquals(get_max_upload_file_size($maxbytes), $siteinfo['usermaxuploadfilesize']);
|
||||
$this->assertEquals(true, $siteinfo['usercanmanageownfiles']);
|
||||
|
||||
// Now as admin.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue