Commit e97e9615 authored by Damyon Wiese's avatar Damyon Wiese
Browse files

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.
parent d5818626
......@@ -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);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment