Skip to content

Commit 90201b4

Browse files
Andrei KuprienkaAndrei Kuprienka
authored andcommitted
MAGNIMEX-SPRINT2: Add lost php unit tests
testIsRowValid test
2 parents 77c0607 + e2bf1ed commit 90201b4

File tree

1 file changed

+13
-0
lines changed
  • app/code/Magento/BundleImportExport/Test/Unit/Model/Import/Product/Type

1 file changed

+13
-0
lines changed

app/code/Magento/BundleImportExport/Test/Unit/Model/Import/Product/Type/BundleTest.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,19 @@ public function testPrepareAttributesWithDefaultValueForSaveInsideCall()
347347
$bundleMock->prepareAttributesWithDefaultValueForSave($rowData);
348348
}
349349

350+
/**
351+
* Test for isRowValid()
352+
*/
353+
public function testIsRowValid()
354+
{
355+
$this->entityModel->expects($this->any())->method('getRowScope')->will($this->returnValue(-1));
356+
$rowData = [
357+
'price_type' => 'fixed',
358+
'price_view' => 'bundle_price_view'
359+
];
360+
$this->assertEquals($this->bundle->isRowValid($rowData, 0), true);
361+
}
362+
350363
/**
351364
* @param $object
352365
* @param $property

0 commit comments

Comments
 (0)