Skip to content

Commit e6e6f38

Browse files
author
Oleksandr Manchenko
committed
MTA-548: Re-factor Tests for Create Products
- Fixed logical and code style errors
1 parent 21ac18a commit e6e6f38

File tree

6 files changed

+4
-33
lines changed

6 files changed

+4
-33
lines changed

dev/tests/functional/lib/Magento/Mtf/Client/Element/SuggestElement.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public function setValue($value)
5959

6060
$this->clear();
6161

62-
if ($value == ''){
62+
if ($value == '') {
6363
return;
6464
}
6565
foreach (str_split($value) as $symbol) {

dev/tests/functional/tests/app/Magento/Bundle/Test/Fixture/BundleProduct/BundleSelections.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -672,7 +672,7 @@ protected function getPreset($name)
672672
'products' => [
673673
[
674674
'catalogProductSimple::simple',
675-
'catalogProductVirtual::for_bundle_fixed',
675+
'catalogProductVirtual::product_15_dollar',
676676
],
677677
],
678678
],

dev/tests/functional/tests/app/Magento/Catalog/Test/Block/Product/ProductList/Related.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class Related extends PromotedSection
1919
* Return product item block.
2020
*
2121
* @param FixtureInterface $product
22-
* @return ProductItem
22+
* @return RelatedProductItem
2323
*/
2424
public function getProductItem(FixtureInterface $product)
2525
{

dev/tests/functional/tests/app/Magento/Catalog/Test/Repository/CatalogProductSimple.xml

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -856,35 +856,6 @@
856856
</field>
857857
</dataset>
858858

859-
<dataset name="with_msrp">
860-
<field name="attribute_set_id" xsi:type="array">
861-
<item name="dataSet" xsi:type="string">default</item>
862-
</field>
863-
<field name="name" xsi:type="string">Simple Product with msrp %isolation%</field>
864-
<field name="sku" xsi:type="string">sku_simple_product_with_msrp_%isolation%</field>
865-
<field name="weight" xsi:type="string">1</field>
866-
<field name="quantity_and_stock_status" xsi:type="array">
867-
<item name="qty" xsi:type="string">25</item>
868-
<item name="is_in_stock" xsi:type="string">In Stock</item>
869-
</field>
870-
<field name="price" xsi:type="array">
871-
<item name="value" xsi:type="string">560</item>
872-
<item name="preset" xsi:type="string">-</item>
873-
</field>
874-
<field name="tax_class_id" xsi:type="array">
875-
<item name="dataSet" xsi:type="string">taxable_goods</item>
876-
</field>
877-
<field name="website_ids" xsi:type="array">
878-
<item name="0" xsi:type="string">Main Website</item>
879-
</field>
880-
<field name="visibility" xsi:type="string">Catalog, Search</field>
881-
<field name="checkout_data" xsi:type="array">
882-
<item name="preset" xsi:type="string">order_default</item>
883-
</field>
884-
<field name="msrp" xsi:type="string">600</field>
885-
<field name="msrp_display_actual_price_type" xsi:type="string">Before Order Confirmation</field>
886-
</dataset>
887-
888859
<dataset name="product_with_category_with_anchor">
889860
<field name="sku" xsi:type="string">simple_product_with_category_%isolation%</field>
890861
<field name="name" xsi:type="string">Simple product with category %isolation%</field>

dev/tests/functional/tests/app/Magento/Catalog/Test/Repository/CatalogProductVirtual.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@
143143
</field>
144144
</dataset>
145145

146-
<dataset name="for_bundle_fixed">
146+
<dataset name="product_15_dollar">
147147
<field name="tax_class_id" xsi:type="array">
148148
<item name="dataSet" xsi:type="string">taxable_goods</item>
149149
</field>

0 commit comments

Comments
 (0)