File tree 2 files changed +3
-0
lines changed 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,7 @@ class Copier
50
50
/**
51
51
* @param CopyConstructorInterface $copyConstructor
52
52
* @param \Magento\Catalog\Model\ProductFactory $productFactory
53
+ * @param ProductRepositoryInterface|null $productRepository
53
54
*/
54
55
public function __construct (
55
56
CopyConstructorInterface $ copyConstructor ,
Original file line number Diff line number Diff line change @@ -101,6 +101,8 @@ public function testCopy()
101
101
'product data ' => ['product data ' ],
102
102
ProductInterface::EXTENSION_ATTRIBUTES_KEY => $ extensionAttributes ,
103
103
];
104
+
105
+ $ this ->productMock ->expects ($ this ->once ())->method ('getStoreId ' )->willReturn (0 );
104
106
$ this ->productMock ->expects ($ this ->atLeastOnce ())->method ('getWebsiteIds ' );
105
107
$ this ->productMock ->expects ($ this ->atLeastOnce ())->method ('getCategoryIds ' );
106
108
$ this ->productMock ->expects ($ this ->any ())->method ('getData ' )->willReturnMap ([
You can’t perform that action at this time.
0 commit comments