Skip to content

Commit 2dd6b14

Browse files
committed
fix phpStan
1 parent 2dc4f1e commit 2dd6b14

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

app/code/Magento/ConfigurableImportExport/Test/Unit/Model/Import/Product/Type/ConfigurableTest.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,6 @@ protected function _getSuperAttributes(): array
410410
'attribute_code' => 'testattr2',
411411
'is_global' => '1',
412412
'is_visible' => '1',
413-
'is_static' => '0',
414413
'is_required' => '0',
415414
'is_unique' => '0',
416415
'frontend_label' => 'testattr2',
@@ -432,7 +431,6 @@ protected function _getSuperAttributes(): array
432431
'attribute_code' => 'testattr3',
433432
'is_global' => '1',
434433
'is_visible' => '1',
435-
'is_static' => '0',
436434
'is_required' => '0',
437435
'is_unique' => '0',
438436
'frontend_label' => 'testattr3',
@@ -480,8 +478,8 @@ public function testSaveData()
480478
[$this->productEntityLinkField => 9, 'type_id' => 'configurable', 'attr_set_code' => 'Default'],
481479
]);
482480
$this->_entityModel->expects($this->any())
483-
->method('getNewSku')
484-
->will($this->returnValue($newSkus));
481+
->method('getNewSku')
482+
->will($this->returnValue($newSkus));
485483

486484
// at(0) is select() call, quoteIdentifier() is invoked at(1) and at(2)
487485
$this->_connection->expects($this->at(1))->method('quoteIdentifier')->with('m.attribute_id')->willReturn('a');
@@ -574,7 +572,7 @@ public function testIsRowValid(array $productData): void
574572
$this->setPropertyValue($this->configurable, '_superAttributes', $productData['super_attributes']);
575573

576574
foreach ($bunch as $rowData) {
577-
$result = $this->configurable->isRowValid($rowData, 0, !isset($this->_oldSku[$rowData['sku']]));
575+
$result = $this->configurable->isRowValid($rowData, 0, false);
578576
$this->assertNotNull($result);
579577
if ($rowData['sku'] === $caseInsensitiveSKU) {
580578
$this->assertTrue($result);

0 commit comments

Comments
 (0)