/** * Test text column sub-member */ public function testTextColumnSubMember() { $SUT = new Grid_Column_Text(); $SUT->field('author')->member('name'); $author = array('name' => 'someName'); $data = array('author' => (object) $author); $cell = $SUT->render($data); $this->assertEquals('someName', $cell); }
public function __construct(array $column = array()) { parent::__construct($column); $this->_route_str = Arr::get($column, 'route_str'); }