mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 14:27:22 +01:00
MDL-61669 tool_mobile: Return new app policy setting via WS
This commit is contained in:
parent
acee831165
commit
04df75ceeb
@ -277,6 +277,7 @@ class api {
|
||||
$settings->tool_mobile_customlangstrings = get_config('tool_mobile', 'customlangstrings');
|
||||
$settings->tool_mobile_disabledfeatures = get_config('tool_mobile', 'disabledfeatures');
|
||||
$settings->tool_mobile_custommenuitems = get_config('tool_mobile', 'custommenuitems');
|
||||
$settings->tool_mobile_apppolicy = get_config('tool_mobile', 'apppolicy');
|
||||
}
|
||||
|
||||
return $settings;
|
||||
|
@ -173,6 +173,7 @@ class tool_mobile_external_testcase extends externallib_advanced_testcase {
|
||||
array('name' => 'tool_mobile_customlangstrings', 'value' => ''),
|
||||
array('name' => 'tool_mobile_disabledfeatures', 'value' => ''),
|
||||
array('name' => 'tool_mobile_custommenuitems', 'value' => ''),
|
||||
array('name' => 'tool_mobile_apppolicy', 'value' => ''),
|
||||
);
|
||||
$this->assertCount(0, $result['warnings']);
|
||||
$this->assertEquals($expected, $result['settings']);
|
||||
|
Loading…
x
Reference in New Issue
Block a user