diff --git a/tests/forms/gridfield/GridFieldDetailFormTest.php b/tests/forms/gridfield/GridFieldDetailFormTest.php index ca3e87dbc..055badcda 100644 --- a/tests/forms/gridfield/GridFieldDetailFormTest.php +++ b/tests/forms/gridfield/GridFieldDetailFormTest.php @@ -242,7 +242,7 @@ class GridFieldDetailFormTest_Person extends DataObject implements TestOnly { ) ); - private static $default_sort = 'FirstName'; + private static $default_sort = '"FirstName"'; public function getCMSFields() { $fields = parent::getCMSFields(); @@ -266,7 +266,7 @@ class GridFieldDetailFormTest_PeopleGroup extends DataObject implements TestOnly 'People' => 'GridFieldDetailFormTest_Person' ); - private static $default_sort = 'Name'; + private static $default_sort = '"Name"'; public function getCMSFields() { $fields = parent::getCMSFields(); @@ -290,7 +290,7 @@ class GridFieldDetailFormTest_Category extends DataObject implements TestOnly { 'People' => 'GridFieldDetailFormTest_Person' ); - private static $default_sort = 'Name'; + private static $default_sort = '"Name"'; public function getCMSFields() { $fields = parent::getCMSFields(); diff --git a/tests/model/DataObjectTest.php b/tests/model/DataObjectTest.php index c651e64e9..aa8a45782 100644 --- a/tests/model/DataObjectTest.php +++ b/tests/model/DataObjectTest.php @@ -1161,7 +1161,7 @@ class DataObjectTest_Team extends DataObject implements TestOnly { ) ); - private static $default_sort = "Title"; + private static $default_sort = '"Title"'; public function MyTitle() { return 'Team ' . $this->Title;