/** * @covers GridField::getColumnContent */ public function testGetColumnContentBadArguments() { $this->setExpectedException('InvalidArgumentException'); $list = new ArrayList(array(new Member(array("ID" => 1, "Email" => "*****@*****.**")))); $obj = new GridField('testfield', 'testfield', $list); $obj->getColumnContent($list->first(), 'non-existing'); }