MDL-49425 webservices: Fix unit test dependent of php.ini

This commit is contained in:
Eloy Lafuente (stronk7) 2015-03-25 03:09:24 +01:00
parent 67b853ff6b
commit 33d65f705b

View file

@ -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.