Skip to content

Commit 0a6b86e

Browse files
author
Ian Daszkowski
committed
MAGETWO-38383: Increase Unit Test Code Coverage
- Corrected assertions for failing unit tests.
1 parent ef0eda0 commit 0a6b86e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

setup/src/Magento/Setup/Test/Unit/Fixtures/ConfigurableProductsFixtureTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public function testExecute()
8080
$valueMap = [
8181
[
8282
'Magento\ImportExport\Model\Import',
83-
['data' => ['entity' => 'catalog_product', 'behavior' => 'replace']],
83+
['data' => ['entity' => 'catalog_product', 'behavior' => 'append']],
8484
$importMock
8585
],
8686
['Magento\Store\Model\StoreManager', [], $storeManagerMock]

setup/src/Magento/Setup/Test/Unit/Fixtures/SimpleProductsFixtureTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,10 @@ public function testExecute()
7070
$categoryMock->expects($this->once())
7171
->method('getPath')
7272
->willReturn('path/to/category');
73-
$categoryMock->expects($this->exactly(4))
73+
$categoryMock->expects($this->exactly(5))
7474
->method('load')
7575
->willReturnSelf();
76-
$categoryMock->expects($this->exactly(2))
76+
$categoryMock->expects($this->exactly(3))
7777
->method('getName')
7878
->willReturn('category_name');
7979

0 commit comments

Comments
 (0)