Skip to content

Commit ede8af0

Browse files
committed
MAGETWO-53574: Merge pull request with regression bugfixes
1 parent 8b3ec1e commit ede8af0

File tree

1 file changed

+0
-16
lines changed
  • app/code/Magento/Catalog/Test/Unit/Controller/Adminhtml/Product/Initialization

1 file changed

+0
-16
lines changed

app/code/Magento/Catalog/Test/Unit/Controller/Adminhtml/Product/Initialization/HelperTest.php

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -196,16 +196,6 @@ protected function setUp()
196196
*/
197197
public function testInitialize()
198198
{
199-
$this->websiteMock->expects($this->once())
200-
->method('getId')
201-
->willReturn($this->websiteId);
202-
$this->storeMock->expects($this->once())
203-
->method('getWebsite')
204-
->willReturn($this->websiteMock);
205-
$this->storeManagerMock->expects($this->once())
206-
->method('getStore')
207-
->with(true)
208-
->willReturn($this->storeMock);
209199
$this->customOptionMock->expects($this->once())
210200
->method('setProductSku');
211201
$this->customOptionMock->expects($this->once())
@@ -270,9 +260,6 @@ public function testInitialize()
270260
->method('filter')
271261
->with(['stock_data'])
272262
->willReturn(['stock_data']);
273-
$this->storeManagerMock->expects($this->once())
274-
->method('hasSingleStore')
275-
->willReturn(true);
276263
$this->productMock->expects($this->once())
277264
->method('isLockedAttribute')
278265
->with('media')
@@ -300,9 +287,6 @@ public function testInitialize()
300287
$this->productMock->expects($this->once())
301288
->method('getSku')
302289
->willReturn('sku');
303-
$this->productMock->expects($this->once())
304-
->method('setWebsiteIds')
305-
->with([$this->websiteId]);
306290
$this->productMock->expects($this->any())
307291
->method('getOptionsReadOnly')
308292
->willReturn(false);

0 commit comments

Comments
 (0)