8 use \Magento\Catalog\Controller\Adminhtml\Product\Initialization\Helper\HandlerFactory;
24 $this->_objectManagerMock = $this->createMock(\
Magento\Framework\ObjectManagerInterface::class);
30 $this->expectException(
'\InvalidArgumentException');
31 $this->expectExceptionMessage(\
Magento\Framework\DataObject::class .
' does not implement ' .
33 $this->_objectManagerMock->expects($this->never())->method(
'create');
34 $this->_model->create(\
Magento\Framework\DataObject::class);
39 $this->_objectManagerMock->expects(
44 \
Magento\Catalog\Controller\Adminhtml\
Product\Initialization\
Helper\Plugin\Handler\Composite::class
46 $this->returnValue(
'object')
50 $this->_model->create(
51 \
Magento\Catalog\Controller\Adminhtml\
Product\Initialization\
Helper\Plugin\Handler\Composite::class
testCreateWithInvalidType()
testCreateWithValidType()