function testSetDataclass() { $grid = new Datagrid('Testgrid'); $grid->setModelClass('SiteTree'); $this->assertEquals('SiteTree', $grid->getModelClass()); }