From dbf64399b81ec17177dd48f62cf47661412b684d Mon Sep 17 00:00:00 2001 From: Simon Welsh Date: Sun, 16 Mar 2014 09:52:37 +1300 Subject: [PATCH] Update expected ID value --- tests/forms/gridfield/GridFieldSortableHeaderTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 +}