File tree Expand file tree Collapse file tree 2 files changed +96
-0
lines changed
src/Magento/FunctionalTestingFramework/Helper Expand file tree Collapse file tree 2 files changed +96
-0
lines changed Original file line number Diff line number Diff line change
1
+ <?php
2
+ /**
3
+ * Copyright © Magento, Inc. All rights reserved.
4
+ * See COPYING.txt for license details.
5
+ */
6
+
7
+ namespace Magento \FunctionalTestingFramework \Helper ;
8
+
9
+ use Magento \FunctionalTestingFramework \Module \MagentoWebDriver ;
10
+ use Codeception \Module ;
11
+
12
+ /**
13
+ * Class Acceptance
14
+ *
15
+ * Define global actions
16
+ * All public methods declared in helper class will be available in $I
17
+ */
18
+ class Acceptance extends Module
19
+ {
20
+ /**
21
+ * Reconfig WebDriver.
22
+ *
23
+ * @param string $config
24
+ * @param string $value
25
+ * @return void
26
+ */
27
+ public function changeConfiguration ($ config , $ value )
28
+ {
29
+ $ this ->getModule (MagentoWebDriver::class)->_reconfigure ([$ config => $ value ]);
30
+ }
31
+
32
+ /**
33
+ * Get WebDriver configuration.
34
+ *
35
+ * @param string $config
36
+ * @return string
37
+ */
38
+ public function getConfiguration ($ config )
39
+ {
40
+ return $ this ->getModule (MagentoWebDriver::class)->_getConfig ($ config );
41
+ }
42
+ }
Original file line number Diff line number Diff line change
1
+ <?php
2
+ /**
3
+ * Copyright © Magento, Inc. All rights reserved.
4
+ * See COPYING.txt for license details.
5
+ */
6
+
7
+ namespace Magento \FunctionalTestingFramework \Helper ;
8
+
9
+ /**
10
+ * Class MagentoFakerData
11
+ */
12
+ class MagentoFakerData extends \Codeception \Module
13
+ {
14
+ /**
15
+ * Get Customer data.
16
+ *
17
+ * @param array $additional
18
+ * @return array
19
+ */
20
+ public function getCustomerData (array $ additional = [])
21
+ {
22
+ return [$ additional ];
23
+ }
24
+
25
+ /**
26
+ * Get category data.
27
+ *
28
+ * @return array
29
+ */
30
+ public function getCategoryData ()
31
+ {
32
+ return [];
33
+ }
34
+
35
+ /**
36
+ * Get simple product data.
37
+ *
38
+ * @return array
39
+ */
40
+ public function getProductData ()
41
+ {
42
+ return [];
43
+ }
44
+
45
+ /**
46
+ * Get Content Page Data.
47
+ *
48
+ * @return array
49
+ */
50
+ public function getContentPage ()
51
+ {
52
+ return [];
53
+ }
54
+ }
You can’t perform that action at this time.
0 commit comments