objFromFixture('GridFieldTest_Person', 'first'); $response = $this->get("GridFieldFunctionalTest_Controller/"); $this->assertContains($firstPerson->Name, $response->getBody()); } } class GridFieldFunctionalTest_Controller extends Controller { protected $template = 'BlankPage'; function Link($action = null) { return Controller::join_links('GridFieldFunctionalTest_Controller', $action); } public function index() { $grid = new GridField('testgrid'); $dataSource = DataList::create("GridFieldTest_Person")->sort("Name"); $grid->setList($dataSource); $form = new Form($this, 'gridform', new FieldList($grid), new FieldList(new FormAction('rerender', 'rerender'))); return array('Form'=>$form); } }