The property Name does not exist on SilverStripe\CKANRegistry\Model\ResourceField. Since you implemented __set, consider adding a @property annotation.
Loading history...
16
$field->write();
17
18
$this->assertSame(
19
'Teachers in my country',
20
$field->ReadableName,
21
'Readable name should be generated on write'
22
);
23
24
$field->Name = 'Some-new_Name';
25
$field->write();
26
27
$this->assertSame(
28
'Teachers in my country',
29
$field->ReadableName,
30
'Readable name should not be changed automatically once it is set'