示例#1
0
 public function testAddColumn()
 {
     $config = ['name' => 'store_type', 'no_span' => true, 'value' => 'value'];
     $this->factoryElementMock->expects($this->once())->method('create')->with('column', ['data' => $config])->will($this->returnValue($this->elementMock));
     $this->elementMock->expects($this->once())->method('setId')->with('hidden');
     $this->elementMock->expects($this->exactly(2))->method('setForm')->will($this->returnSelf());
     $this->factoryCollectionMock->expects($this->once())->method('create')->will($this->returnValue($this->allElementsMock));
     $this->allElementsMock->expects($this->once())->method('add')->with($this->elementMock, false);
     $this->abstractForm->addColumn('hidden', $config);
 }