Skip to content

Commit

Permalink
#33486 - static file testing fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakub Winkler committed Sep 19, 2021
1 parent c78a5a6 commit b638595
Show file tree
Hide file tree
Showing 13 changed files with 771 additions and 13 deletions.
Expand Up @@ -38,24 +38,23 @@ public function __construct(
}

/**
* @return array
* @inheritdoc
*/
public static function getDependencies()
{
return [];
}

/**
* @return array
* @inheritdoc
*/
public function getAliases()
{
return [];
}

/**
* @return UpdateMultiselectAttributesBackendTypes
* @throws LocalizedException
* @inheritdoc
*/
public function apply()
{
Expand Down
Expand Up @@ -207,7 +207,6 @@ public function testGetAttributeText()
$this->assertEquals('Enabled', $this->_model->getAttributeText('status'));
}


/**
* @magentoDataFixture Magento/Catalog/_files/products_with_multiselect_attribute.php
*/
Expand All @@ -226,7 +225,6 @@ public function testGetAttributeTextArray()
);
}


/**
* @magentoDataFixture Magento/Catalog/_files/products_with_multiselect_attribute.php
*/
Expand All @@ -246,7 +244,6 @@ public function testMultipleMultiselectTextValues()
);
}


public function testGetCustomDesignDate()
{
$this->assertEquals(['from' => null, 'to' => null], $this->_model->getCustomDesignDate());
Expand Down
Expand Up @@ -14,11 +14,6 @@
use Magento\Store\Model\StoreManagerInterface;
use Magento\Store\Api\Data\StoreInterface;

/**
* Class SourceTest
* @magentoAppIsolation enabled
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
*/
class SourceTest extends \PHPUnit\Framework\TestCase
{
/**
Expand Down
Expand Up @@ -62,7 +62,9 @@
->setSku('simple_ms_2')
->setPrice(10)
->setVisibility(\Magento\Catalog\Model\Product\Visibility::VISIBILITY_BOTH)
->setMultiselectAttribute([$multiSelectAttributeOptionsIds[1], $multiSelectAttributeOptionsIds[2], $multiSelectAttributeOptionsIds[3]])
->setMultiselectAttribute(
[$multiSelectAttributeOptionsIds[1], $multiSelectAttributeOptionsIds[2], $multiSelectAttributeOptionsIds[3]]
)
->setStatus(\Magento\Catalog\Model\Product\Attribute\Source\Status::STATUS_ENABLED)
->setStockData(['use_config_manage_stock' => 1, 'qty' => 100, 'is_qty_decimal' => 0, 'is_in_stock' => 1])
->save();
Expand Down

0 comments on commit b638595

Please sign in to comment.