Permalink
Browse files

MDL-39563 Fixing mobilecssurl is not being returned in WebService php…

…unit tests
  • Loading branch information...
1 parent 3cba96e commit ee2316f0227c56827df21c230160893ff17950a8 @jleyva jleyva committed Jul 11, 2013
Showing with 3 additions and 3 deletions.
  1. +2 −2 webservice/externallib.php
  2. +1 −1 webservice/tests/externallib_test.php
@@ -156,8 +156,8 @@ public static function get_site_info($serviceshortnames = array()) {
$siteinfo['functions'] = $availablefunctions;
- // Mobile CSS theme and alternative login url
- $siteinfo['mobilecssurl'] = get_config(NULL, 'mobilecssurl');
+ // Mobile CSS theme and alternative login url.
+ $siteinfo['mobilecssurl'] = get_config(null, 'mobilecssurl');
return $siteinfo;
}
@@ -89,7 +89,7 @@ public function test_get_site_info() {
$this->assertEquals(true, $siteinfo['downloadfiles']);
$this->assertEquals($CFG->release, $siteinfo['release']);
$this->assertEquals($CFG->version, $siteinfo['version']);
- $this->assertEquals(get_config('admin', 'mobilecssurl'), $siteinfo['mobilecssurl']);
+ $this->assertEquals(get_config(null, 'mobilecssurl'), $siteinfo['mobilecssurl']);
$this->assertEquals(count($siteinfo['functions']), 1);
$function = array_pop($siteinfo['functions']);
$this->assertEquals($function['name'], 'core_course_get_contents');

0 comments on commit ee2316f

Please sign in to comment.