File tree Expand file tree Collapse file tree 1 file changed +3
-13
lines changed
dev/tests/functional/tests/app/Magento/Catalog/Test/TestCase/Product Expand file tree Collapse file tree 1 file changed +3
-13
lines changed Original file line number Diff line number Diff line change 10
10
use Magento \Catalog \Test \Fixture \CatalogProductSimple ;
11
11
use Magento \Catalog \Test \Page \Adminhtml \CatalogProductIndex ;
12
12
use Magento \Catalog \Test \Page \Adminhtml \CatalogProductNew ;
13
- use Magento \Mtf \ObjectManager ;
14
13
use Magento \Mtf \TestCase \Injectable ;
15
14
16
15
/**
17
- * Test Flow :
16
+ * Steps :
18
17
* 1. Login to the backend.
19
18
* 2. Navigate to Products > Catalog.
20
19
* 3. Start to create simple product.
@@ -33,13 +32,6 @@ class CreateSimpleProductEntityTest extends Injectable
33
32
const DOMAIN = 'MX ' ;
34
33
/* end tags */
35
34
36
- /**
37
- * Object Manager.
38
- *
39
- * @var ObjectManager
40
- */
41
- protected $ objectManager ;
42
-
43
35
/**
44
36
* Configuration setting.
45
37
*
@@ -50,15 +42,13 @@ class CreateSimpleProductEntityTest extends Injectable
50
42
/**
51
43
* Prepare data.
52
44
*
53
- * @param ObjectManager $objectManager
54
45
* @param Category $category
55
46
* @return array
56
47
*/
57
- public function __prepare (ObjectManager $ objectManager , Category $ category )
48
+ public function __prepare (Category $ category )
58
49
{
59
- $ this ->objectManager = $ objectManager ;
60
-
61
50
$ category ->persist ();
51
+
62
52
return [
63
53
'category ' => $ category
64
54
];
You can’t perform that action at this time.
0 commit comments