Пример #1
0
 public function testSetForm()
 {
     $this->_qtyMock->expects($this->once())->method('setForm')->with($this->isInstanceOf('Magento\\Framework\\Data\\Form\\Element\\AbstractElement'));
     $objectManager = new \Magento\TestFramework\Helper\ObjectManager($this);
     $this->_block->setForm($objectManager->getObject('Magento\\Framework\\Data\\Form\\Element\\Text', ['factoryElement' => $this->_factoryElementMock, 'factoryCollection' => $this->_collectionFactoryMock]));
 }