Skip to content

Commit 473655c

Browse files
committed
MAGETWO-37718: [MX][Virtual Team] Pull Request #1 - May 21
- fix static tests
1 parent d2a7d15 commit 473655c

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

app/code/Magento/CatalogImportExport/Model/Import/Product/Type/AbstractType.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
*/
66
namespace Magento\CatalogImportExport\Model\Import\Product\Type;
77

8+
use Magento\CatalogImportExport\Model\Import\Product\RowValidatorInterface;
9+
810
/**
911
* Import entity abstract product type model
1012
*
@@ -270,7 +272,7 @@ public function isRowValid(array $rowData, $rowNum, $isNewProduct = true)
270272
))
271273
) {
272274
$this->_entityModel->addRowError(
273-
\Magento\CatalogImportExport\Model\Import\Product\RowValidatorInterface::ERROR_VALUE_IS_REQUIRED,
275+
RowValidatorInterface::ERROR_VALUE_IS_REQUIRED,
274276
$rowNum,
275277
$attrCode
276278
);

app/code/Magento/CatalogImportExport/Test/Unit/Model/Import/Product/Type/AbstractTypeTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ protected function setUp()
8585
'getApplyTo',
8686
'getDefaultValue',
8787
'usesSource',
88-
'getFrontendInput'
88+
'getFrontendInput',
8989
],
9090
[],
9191
'',
@@ -119,7 +119,7 @@ protected function setUp()
119119
[
120120
'attrSetColFac' => $attrSetColFactory,
121121
'prodAttrColFac' => $attrColFactory,
122-
'params' => [$this->entityModel, 'simple']
122+
'params' => [$this->entityModel, 'simple'],
123123
]
124124
);
125125
}
@@ -147,4 +147,4 @@ public function testIsRowValidError()
147147
->willReturnSelf();
148148
$this->assertFalse($this->simpleType->isRowValid($rowData, $rowNum));
149149
}
150-
}
150+
}

dev/tests/static/testsuite/Magento/Test/Legacy/_files/obsolete_methods.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2228,4 +2228,5 @@
22282228
['getIdentities', 'Magento\Sales\Block\Reorder\Sidebar'],
22292229
['assignData', 'Magento\OfflinePayments\Model\Checkmo'],
22302230
['timeShift', 'Magento\Reports\Model\Resource\Report\Collection'],
2231+
['Magento\Catalog\Model\Product\Attribute\Backend\Startdate', 'Magento\Catalog\Model\Attribute\Backend\Startdate'],
22312232
];

0 commit comments

Comments
 (0)