Skip to content

Commit b638595

Browse files
author
Jakub Winkler
committed
#33486 - static file testing fix
1 parent c78a5a6 commit b638595

File tree

13 files changed

+771
-13
lines changed

13 files changed

+771
-13
lines changed

app/code/Magento/Catalog/Setup/Patch/Data/UpdateMultiselectAttributesBackendTypes.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,24 +38,23 @@ public function __construct(
3838
}
3939

4040
/**
41-
* @return array
41+
* @inheritdoc
4242
*/
4343
public static function getDependencies()
4444
{
4545
return [];
4646
}
4747

4848
/**
49-
* @return array
49+
* @inheritdoc
5050
*/
5151
public function getAliases()
5252
{
5353
return [];
5454
}
5555

5656
/**
57-
* @return UpdateMultiselectAttributesBackendTypes
58-
* @throws LocalizedException
57+
* @inheritdoc
5958
*/
6059
public function apply()
6160
{

dev/tests/integration/testsuite/Magento/Catalog/Model/ProductGettersTest.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,6 @@ public function testGetAttributeText()
207207
$this->assertEquals('Enabled', $this->_model->getAttributeText('status'));
208208
}
209209

210-
211210
/**
212211
* @magentoDataFixture Magento/Catalog/_files/products_with_multiselect_attribute.php
213212
*/
@@ -226,7 +225,6 @@ public function testGetAttributeTextArray()
226225
);
227226
}
228227

229-
230228
/**
231229
* @magentoDataFixture Magento/Catalog/_files/products_with_multiselect_attribute.php
232230
*/
@@ -246,7 +244,6 @@ public function testMultipleMultiselectTextValues()
246244
);
247245
}
248246

249-
250247
public function testGetCustomDesignDate()
251248
{
252249
$this->assertEquals(['from' => null, 'to' => null], $this->_model->getCustomDesignDate());

dev/tests/integration/testsuite/Magento/Catalog/Model/ResourceModel/Product/Indexer/Eav/SourceTest.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,6 @@
1414
use Magento\Store\Model\StoreManagerInterface;
1515
use Magento\Store\Api\Data\StoreInterface;
1616

17-
/**
18-
* Class SourceTest
19-
* @magentoAppIsolation enabled
20-
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
21-
*/
2217
class SourceTest extends \PHPUnit\Framework\TestCase
2318
{
2419
/**

dev/tests/integration/testsuite/Magento/Catalog/_files/products_with_multiselect_attribute.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,9 @@
6262
->setSku('simple_ms_2')
6363
->setPrice(10)
6464
->setVisibility(\Magento\Catalog\Model\Product\Visibility::VISIBILITY_BOTH)
65-
->setMultiselectAttribute([$multiSelectAttributeOptionsIds[1], $multiSelectAttributeOptionsIds[2], $multiSelectAttributeOptionsIds[3]])
65+
->setMultiselectAttribute(
66+
[$multiSelectAttributeOptionsIds[1], $multiSelectAttributeOptionsIds[2], $multiSelectAttributeOptionsIds[3]]
67+
)
6668
->setStatus(\Magento\Catalog\Model\Product\Attribute\Source\Status::STATUS_ENABLED)
6769
->setStockData(['use_config_manage_stock' => 1, 'qty' => 100, 'is_qty_decimal' => 0, 'is_in_stock' => 1])
6870
->save();

0 commit comments

Comments
 (0)