diff --git a/tests/forms/gridfield/GridFieldSortableHeaderTest.php b/tests/forms/gridfield/GridFieldSortableHeaderTest.php index ce48ee00c..2f79269f9 100644 --- a/tests/forms/gridfield/GridFieldSortableHeaderTest.php +++ b/tests/forms/gridfield/GridFieldSortableHeaderTest.php @@ -31,7 +31,7 @@ class GridFieldSortableHeaderTest extends SapphireTest { // Check that the output shows name and hat as sortable fields, but not city $this->assertContains('City', $htmlFragment['header']); $this->assertContains('value="Name" class="action ss-gridfield-sort" id="action_SetOrderName"', $htmlFragment['header']); - $this->assertContains('value="Cheerleader Hat" class="action ss-gridfield-sort" id="action_SetOrderCheerleader.Hat.Colour"', $htmlFragment['header']); + $this->assertContains('value="Cheerleader Hat" class="action ss-gridfield-sort" id="action_SetOrderCheerleader-Hat-Colour"', $htmlFragment['header']); // Check inverse of above $this->assertNotContains('value="City" class="action ss-gridfield-sort" id="action_SetOrderCity"', $htmlFragment['header']); @@ -143,4 +143,4 @@ class GridFieldSortableHeaderTest_CheerleaderHat extends DataObject implements T 'Cheerleader' => 'GridFieldSortableHeaderTest_Cheerleader' ); -} \ No newline at end of file +}