Skip to content

Commit e2bf1ed

Browse files
Siarhei AndreyeuSiarhei Andreyeu
authored andcommitted
MAGNIMEX-SPRINT2
- testIsRowValid - eof
1 parent 4cbb3d7 commit e2bf1ed

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
@@ -319,4 +319,17 @@ public function testSaveDataDelete()
319319
]));
320320
$this->bundle->saveData();
321321
}
322+
323+
/**
324+
* Test for isRowValid()
325+
*/
326+
public function testIsRowValid()
327+
{
328+
$this->entityModel->expects($this->any())->method('getRowScope')->will($this->returnValue(-1));
329+
$rowData = [
330+
'price_type' => 'fixed',
331+
'price_view' => 'bundle_price_view'
332+
];
333+
$this->assertEquals($this->bundle->isRowValid($rowData, 0), true);
334+
}
322335
}

0 commit comments

Comments
 (0)