MDL-61671 tool_mobile: Improve certificate checks

Support different curl implementations and skip last certificate checks in some cases.
This commit is contained in:
Juan Leyva
2021-11-09 17:06:20 +01:00
parent 8ecf433c53
commit b8c4c7694b
3 changed files with 36 additions and 38 deletions
+1 -1
View File
@@ -78,7 +78,7 @@ class tool_mobile_api_testcase extends externallib_advanced_testcase {
$CFG->debugdisplay = 1;
set_config('debugauthdb', 1, 'auth_db');
set_config('debugdb', 1, 'enrol_database');
$expectedissues = array('nohttpsformobilewarning', 'invaliduserquotawarning', 'adodbdebugwarning', 'displayerrorswarning');
$expectedissues = array('adodbdebugwarning', 'displayerrorswarning');
$issues = api::get_potential_config_issues();
$this->assertCount(count($expectedissues), $issues);