20
20
*/
21
21
class MagentoActionProxies extends CodeceptionModule
22
22
{
23
- /**
24
- * PersistedObjectHandler instance
25
- *
26
- * @var PersistedObjectHandler
27
- */
28
- private static $ persistHandler = null ;
29
-
30
23
/**
31
24
* Create an entity
25
+ * TODO: un-comment this function after MQE-1904
32
26
*
33
27
* @param string $key StepKey of the createData action.
34
28
* @param string $scope
@@ -38,6 +32,7 @@ class MagentoActionProxies extends CodeceptionModule
38
32
* @param string $storeCode
39
33
* @return void
40
34
*/
35
+ /*
41
36
public function createEntity(
42
37
$key,
43
38
$scope,
@@ -46,11 +41,7 @@ public function createEntity(
46
41
$overrideFields = [],
47
42
$storeCode = ''
48
43
) {
49
- if (!self ::$ persistHandler ) {
50
- self ::$ persistHandler = PersistedObjectHandler::getInstance ();
51
- }
52
-
53
- self ::$ persistHandler ->createEntity (
44
+ PersistedObjectHandler::getInstance()->createEntity(
54
45
$key,
55
46
$scope,
56
47
$entity,
@@ -59,32 +50,31 @@ public function createEntity(
59
50
$storeCode
60
51
);
61
52
}
62
-
53
+ */
63
54
/**
64
55
* Retrieves and updates a previously created entity
56
+ * TODO: un-comment this function after MQE-1904
65
57
*
66
58
* @param string $key StepKey of the createData action.
67
59
* @param string $scope
68
60
* @param string $updateEntity Name of the static XML data to update the entity with.
69
61
* @param array $dependentObjectKeys StepKeys of other createData actions that are required.
70
62
* @return void
71
63
*/
64
+ /*
72
65
public function updateEntity($key, $scope, $updateEntity, $dependentObjectKeys = [])
73
66
{
74
- if (!self ::$ persistHandler ) {
75
- self ::$ persistHandler = PersistedObjectHandler::getInstance ();
76
- }
77
-
78
- self ::$ persistHandler ->updateEntity (
67
+ PersistedObjectHandler::getInstance()->updateEntity(
79
68
$key,
80
69
$scope,
81
70
$updateEntity,
82
71
$dependentObjectKeys
83
72
);
84
73
}
85
-
74
+ */
86
75
/**
87
76
* Performs GET on given entity and stores entity for use
77
+ * TODO: un-comment this function after MQE-1904
88
78
*
89
79
* @param string $key StepKey of getData action.
90
80
* @param string $scope
@@ -94,13 +84,10 @@ public function updateEntity($key, $scope, $updateEntity, $dependentObjectKeys =
94
84
* @param integer $index
95
85
* @return void
96
86
*/
87
+ /*
97
88
public function getEntity($key, $scope, $entity, $dependentObjectKeys = [], $storeCode = '', $index = null)
98
89
{
99
- if (!self ::$ persistHandler ) {
100
- self ::$ persistHandler = PersistedObjectHandler::getInstance ();
101
- }
102
-
103
- self ::$ persistHandler ->getEntity (
90
+ PersistedObjectHandler::getInstance()->getEntity(
104
91
$key,
105
92
$scope,
106
93
$entity,
@@ -109,49 +96,48 @@ public function getEntity($key, $scope, $entity, $dependentObjectKeys = [], $sto
109
96
$index
110
97
);
111
98
}
112
-
99
+ */
113
100
/**
114
101
* Retrieves and deletes a previously created entity
102
+ * TODO: un-comment this function after MQE-1904
115
103
*
116
104
* @param string $key StepKey of the createData action.
117
105
* @param string $scope
118
106
* @return void
119
107
*/
108
+ /*
120
109
public function deleteEntity($key, $scope)
121
110
{
122
- if (!self ::$ persistHandler ) {
123
- self ::$ persistHandler = PersistedObjectHandler::getInstance ();
124
- }
125
-
126
- self ::$ persistHandler ->deleteEntity ($ key , $ scope );
111
+ PersistedObjectHandler::getInstance()->deleteEntity($key, $scope);
127
112
}
128
-
113
+ */
129
114
/**
130
115
* Retrieves a field from an entity, according to key and scope given
116
+ * TODO: un-comment this function after MQE-1904
131
117
*
132
118
* @param string $stepKey
133
119
* @param string $field
134
120
* @param string $scope
135
121
* @return string
136
122
*/
123
+ /*
137
124
public function retrieveEntityField($stepKey, $field, $scope)
138
125
{
139
- if (!self ::$ persistHandler ) {
140
- self ::$ persistHandler = PersistedObjectHandler::getInstance ();
141
- }
142
-
143
- return self ::$ persistHandler ->retrieveEntityField ($ stepKey , $ field , $ scope );
126
+ return PersistedObjectHandler::getInstance()->retrieveEntityField($stepKey, $field, $scope);
144
127
}
145
-
128
+ */
146
129
/**
147
130
* Get encrypted value by key
131
+ * TODO: un-comment this function after MQE-1904
148
132
*
149
133
* @param string $key
150
134
* @return string|null
151
135
* @throws TestFrameworkException
152
136
*/
137
+ /*
153
138
public function getSecret($key)
154
139
{
155
140
return CredentialStore::getInstance()->getSecret($key);
156
141
}
142
+ */
157
143
}
0 commit comments