public function testFirstLast()
 {
     $list = new ArrayList(array(array('Key' => 1), array('Key' => 2), array('Key' => 3)));
     $this->assertEquals($list->first(), array('Key' => 1));
     $this->assertEquals($list->last(), array('Key' => 3));
 }
 public function testGetColumnAttributesBadResponseFromComponent()
 {
     $this->setExpectedException('LogicException');
     $list = new ArrayList(array(new Member(array("ID" => 1, "Email" => "*****@*****.**"))));
     $config = GridFieldConfig::create()->addComponent(new GridFieldTest_Component());
     $obj = new GridField('testfield', 'testfield', $list, $config);
     $obj->getColumnAttributes($list->first(), 'Surname');
 }