MDL-31238 always return object for plugin settings from get_config()
This prevents multiple creations of objects from NULL which is note a warnings in php54
This commit is contained in:
@@ -747,7 +747,7 @@ class filter_delete_config_test extends UnitTestCaseUsingDatabase {
|
||||
$expectedconfig = new stdClass;
|
||||
$expectedconfig->configname = 'Other config value';
|
||||
$this->assertEqual($expectedconfig, get_config('filter_other'));
|
||||
$this->assertNull(get_config('filter_name'));
|
||||
$this->assertIdentical(get_config('filter_name'), new stdClass());
|
||||
}
|
||||
|
||||
public function test_filter_delete_all_for_context() {
|
||||
|
||||
Reference in New Issue
Block a user