MDL-57273 persistent: Fix access to set/get in test

The setters and getters for the path property in the test class need to be protected.
This commit is contained in:
Damyon Wiese
2017-01-23 14:18:04 +08:00
parent d5818626c0
commit e97e96155a
+2 -2
View File
@@ -494,7 +494,7 @@ class core_testable_persistent extends \core\persistent {
$this->afterdelete = true;
}
public function get_path() {
protected function get_path() {
$value = $this->raw_get('path');
if (!empty($value)) {
$value = json_decode($value);
@@ -502,7 +502,7 @@ class core_testable_persistent extends \core\persistent {
return $value;
}
public function set_path($value) {
protected function set_path($value) {
if (!empty($value)) {
$value = json_encode($value);
}