Skip to content

Fix for #39767 #39768

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 11 commits into
base: 2.4-develop
Choose a base branch
from
2 changes: 0 additions & 2 deletions app/code/Magento/ImportExport/Model/Import.php
Original file line number Diff line number Diff line change
@@ -523,8 +523,6 @@ private function importSourceCallback()
{
$ids = $this->getImportIds();
$this->_getEntityAdapter()->setIds($ids);
$this->setData('entity', $this->getDataSourceModel()->getEntityTypeCode($ids));
$this->setData('behavior', $this->getDataSourceModel()->getBehavior($ids));

//Validating images temporary directory path if the constraint has been provided
if ($this->hasData('images_base_directory')
6 changes: 0 additions & 6 deletions app/code/Magento/ImportExport/Test/Unit/Model/ImportTest.php
Original file line number Diff line number Diff line change
@@ -320,9 +320,6 @@ public function testImportSource()
->method('getEntityTypeCode')
->willReturn($entityTypeCode);
$behaviour = 'behaviour';
$this->_importData->expects($this->once())
->method('getBehavior')
->willReturn($behaviour);
$this->import->expects($this->any())
->method('getDataSourceModel')
->willReturn($this->_importData);
@@ -389,9 +386,6 @@ public function testImportSourceException()
->method('getEntityTypeCode')
->willReturn($entityTypeCode);
$behaviour = 'behaviour';
$this->_importData->expects($this->any())
->method('getBehavior')
->willReturn($behaviour);
$this->import->expects($this->any())
->method('getDataSourceModel')
->willReturn($this->_importData);