mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Fixed merge errors
- HTML identifier changes in master breaking tests
- Regression from b6b3cd9889
in GridFieldSortableHeader (var capitalisation)
This commit is contained in:
parent
b1fa2d282e
commit
740560c487
@ -203,7 +203,7 @@ class GridFieldSortableHeader implements GridField_HTMLProvider, GridField_DataM
|
||||
|
||||
$state = $gridField->State->GridFieldSortableHeader;
|
||||
$sortColumn = $state->SortColumn();
|
||||
if (empty($sortcolumn)) {
|
||||
if (empty($sortColumn)) {
|
||||
return $dataList;
|
||||
}
|
||||
|
||||
|
@ -238,8 +238,8 @@ class GridFieldDetailFormTest extends FunctionalTest {
|
||||
|
||||
$response = $this->get($addLink);
|
||||
$parser = new CSSContentParser($response->getBody());
|
||||
$title = $parser->getBySelector('#GroupID span');
|
||||
$id = $parser->getBySelector('#GroupID input');
|
||||
$title = $parser->getBySelector('#Form_ItemEditForm_GroupID_Holder span');
|
||||
$id = $parser->getBySelector('#Form_ItemEditForm_GroupID_Holder input');
|
||||
|
||||
$this->assertEquals($group->Name, (string) $title[0]);
|
||||
$this->assertEquals($group->ID, (string) $id[0]['value']);
|
||||
|
@ -31,7 +31,7 @@ class GridFieldSortableHeaderTest extends SapphireTest {
|
||||
// Check that the output shows name and hat as sortable fields, but not city
|
||||
$this->assertContains('<span class="non-sortable">City</span>', $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']);
|
||||
|
Loading…
Reference in New Issue
Block a user