Skip to content

Commit 7ac03e7

Browse files
Siarhei AndreyeuSiarhei Andreyeu
authored andcommitted
MAGNIMEX-13: Import history
- Fixed static tests
1 parent a4d7c51 commit 7ac03e7

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

app/code/Magento/ImportExport/Test/Unit/Model/ImportTest.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,11 @@ class ImportTest extends \PHPUnit_Framework_TestCase
103103
*/
104104
protected $_driver;
105105

106+
/**
107+
* Set up
108+
*
109+
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
110+
*/
106111
public function setUp()
107112
{
108113
$logger = $this->getMockBuilder('\Psr\Log\LoggerInterface')
@@ -554,7 +559,6 @@ public function testCreateHistoryReportSourceFileRelativeIsArray()
554559
$fileName = $sourceFileRelative['file_name'];
555560
$gmtTimestamp = 1234567;
556561
$copyName = $gmtTimestamp . '_' . $fileName;
557-
$copyFile = \Magento\ImportExport\Model\Import::IMPORT_HISTORY_DIR . $copyName;
558562

559563
$this->import
560564
->expects($this->once())
@@ -599,7 +603,6 @@ public function testCreateHistoryReportSourceFileRelativeIsNotArrayResultIsSet()
599603
$fileName = $result['name'];
600604
$gmtTimestamp = 1234567;
601605
$copyName = $gmtTimestamp . '_' . $fileName;
602-
$copyFile = \Magento\ImportExport\Model\Import::IMPORT_HISTORY_DIR . $copyName;
603606

604607
$this->import
605608
->expects($this->once())
@@ -640,7 +643,6 @@ public function testCreateHistoryReportExtensionIsSet()
640643
$fileName = $entity . $extension;
641644
$gmtTimestamp = 1234567;
642645
$copyName = $gmtTimestamp . '_' . $fileName;
643-
$copyFile = \Magento\ImportExport\Model\Import::IMPORT_HISTORY_DIR . $copyName;
644646

645647
$this->import
646648
->expects($this->once())

0 commit comments

Comments
 (0)