From 44cae7f0f6d367f6ef132e19dbbdb7ccdd6d40ca Mon Sep 17 00:00:00 2001 From: Ed Date: Thu, 18 Jul 2013 21:01:41 -0300 Subject: [PATCH] Fixed unit test --- tests/forms/GridFieldSortableRowsAutoSortTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/forms/GridFieldSortableRowsAutoSortTest.php b/tests/forms/GridFieldSortableRowsAutoSortTest.php index fcabbca..0c98407 100644 --- a/tests/forms/GridFieldSortableRowsAutoSortTest.php +++ b/tests/forms/GridFieldSortableRowsAutoSortTest.php @@ -28,7 +28,7 @@ class GridFieldSortableRowsAutoSortTest extends SapphireTest { if(Member::currentUser()) { Member::currentUser()->logOut(); } $stateID = 'testGridStateActionField'; - Session::set($stateID, array('grid'=>'', 'actionName'=>'sortableRowsDisablePaginator', 'args'=>array('GridFieldSortableRows'=>array('sortableToggle'=>true)))); + Session::set($stateID, array('grid'=>'', 'actionName'=>'sortableRowsToggle', 'args'=>array('GridFieldSortableRows'=>array('sortableToggle'=>true)))); $request = new SS_HTTPRequest('POST', 'url', array(), array('action_gridFieldAlterAction?StateID='.$stateID=>true)); $this->gridField->gridFieldAlterAction(array('StateID'=>$stateID), $this->form, $request); $this->assertEquals(3, $this->list->last()->SortOrder, 'Auto sort should have run');