Skip to content

Commit 6c008b3

Browse files
committed
MTA-1594: Re-factor Functional tests which are not end-to-end
- CR Changes
1 parent c37c5ff commit 6c008b3

File tree

2 files changed

+12
-14
lines changed

2 files changed

+12
-14
lines changed

dev/tests/functional/tests/app/Magento/Catalog/Test/TestCase/Product/UpdateSimpleProductEntityTest.php

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313
use Magento\Mtf\TestCase\Injectable;
1414

1515
/**
16-
* Test Flow:
17-
*
1816
* Precondition:
1917
* 1. Category is created.
2018
* 2. Product is created and assigned to created category.
@@ -28,7 +26,7 @@
2826
* 6. Perform asserts.
2927
*
3028
* @group Products_(MX)
31-
* @ZephyrId MAGETWO-23544
29+
* @ZephyrId MAGETWO-23544, MAGETWO-21125
3230
*/
3331
class UpdateSimpleProductEntityTest extends Injectable
3432
{
@@ -39,14 +37,14 @@ class UpdateSimpleProductEntityTest extends Injectable
3937
/* end tags */
4038

4139
/**
42-
* Product page with a grid
40+
* Product page with a grid.
4341
*
4442
* @var CatalogProductIndex
4543
*/
4644
protected $productGrid;
4745

4846
/**
49-
* Page to update a product
47+
* Page to update a product.
5048
*
5149
* @var CatalogProductEdit
5250
*/
@@ -60,7 +58,7 @@ class UpdateSimpleProductEntityTest extends Injectable
6058
protected $configData;
6159

6260
/**
63-
* Injection data
61+
* Injection data.
6462
*
6563
* @param CatalogProductIndex $productGrid
6664
* @param CatalogProductEdit $editProductPage
@@ -75,7 +73,7 @@ public function __inject(
7573
}
7674

7775
/**
78-
* Run update product simple entity test
76+
* Run update product simple entity test.
7977
*
8078
* @param CatalogProductSimple $initialProduct
8179
* @param CatalogProductSimple $product
@@ -93,12 +91,11 @@ public function test(CatalogProductSimple $initialProduct, CatalogProductSimple
9391
$category = $product->hasData('category_ids') && $product->getCategoryIds()[0]
9492
? $product->getDataFieldConfig('category_ids')['source']->getCategories()[0]
9593
: $initialCategory;
96-
if ($configData) {
97-
$this->objectManager->create(
98-
'Magento\Config\Test\TestStep\SetupConfigurationStep',
99-
['configData' => $configData]
100-
)->run();
101-
}
94+
95+
$this->objectManager->create(
96+
'Magento\Config\Test\TestStep\SetupConfigurationStep',
97+
['configData' => $configData]
98+
)->run();
10299

103100
// Steps
104101
$filter = ['sku' => $initialProduct->getSku()];
@@ -112,7 +109,7 @@ public function test(CatalogProductSimple $initialProduct, CatalogProductSimple
112109
}
113110

114111
/**
115-
* Clear data after test
112+
* Clear data after test.
116113
*
117114
* @return void
118115
*/

dev/tests/functional/tests/app/Magento/Customer/Test/TestCase/ForgotPasswordOnFrontendTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
* 1. Open forgot password page.
1919
* 2. Fill e-mail.
2020
* 3. Click forgot password button.
21+
* 4. Check forgot password message.
2122
*
2223
* @group Customer_(CS)
2324
* @ZephyrId MAGETWO-37145

0 commit comments

Comments
 (0)