We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 48de6ea commit 8b98dd6Copy full SHA for 8b98dd6
app/code/Magento/Catalog/Test/Unit/Model/ProductRepositoryTest.php
@@ -256,7 +256,9 @@ protected function setUp()
256
->setMethods([])
257
->getMockForAbstractClass();
258
$storeMock->expects($this->any())->method('getWebsiteId')->willReturn('1');
259
+ $storeMock->expects($this->any())->method('getCode')->willReturn(\Magento\Store\Model\Store::ADMIN_CODE);
260
$this->storeManagerMock->expects($this->any())->method('getStore')->willReturn($storeMock);
261
+ $this->storeManagerMock->expects($this->any())->method('getWebsites')->willReturn([1 => 'default']);
262
263
$this->mediaGalleryProcessor = $this->getMock(
264
'Magento\Catalog\Model\Product\Gallery\Processor',
0 commit comments