Esempio n. 1
0
 public function setUp()
 {
     $this->colId = $this->getMockForAbstractClass('ZfcDatagrid\\Column\\AbstractColumn');
     $this->colId->setUniqueId('id');
     $this->colId->setIdentity(true);
     $this->col1 = $this->getMockForAbstractClass('ZfcDatagrid\\Column\\AbstractColumn');
     $this->col1->setUniqueId('col1');
     $this->col2 = $this->getMockForAbstractClass('ZfcDatagrid\\Column\\AbstractColumn');
     $this->col2->setUniqueId('col2');
     $this->col3 = $this->getMockForAbstractClass('ZfcDatagrid\\Column\\AbstractColumn');
     $this->col3->setUniqueId('col3');
     $this->col3->setType(new Type\PhpArray());
     $data = [];
     $data[] = ['id' => '1', 'col1' => 'test', 'col2' => 'n', 'col3' => ['tag1', 'tag2']];
     $data[] = ['id' => '2', 'col1' => 'test', 'col3' => ['tag3', 'tag1']];
     $data[] = ['id' => '3', 'col1' => 'test', 'col2' => 'y', 'col3' => ['tag2', 'tag5']];
     $this->data = $data;
 }