8 use \Magento\Catalog\Model\Product\CopyConstructorFactory;
24 $this->_objectManagerMock = $this->createMock(\
Magento\Framework\ObjectManagerInterface::class);
30 $this->expectException(
'\InvalidArgumentException');
31 $this->expectExceptionMessage(
32 'Magento\Framework\DataObject does not implement \Magento\Catalog\Model\Product\CopyConstructorInterface' 34 $this->_objectManagerMock->expects($this->never())->method(
'create');
35 $this->_model->create(\
Magento\Framework\DataObject::class);
40 $this->_objectManagerMock->expects(
47 $this->returnValue(
'object')
51 $this->_model->create(\
Magento\Catalog\Model\
Product\CopyConstructor\Composite::class)
testCreateWithValidType()
testCreateWithInvalidType()