2020 */
2121class MagentoActionProxies extends CodeceptionModule
2222{
23- /**
24- * PersistedObjectHandler instance
25- *
26- * @var PersistedObjectHandler
27- */
28- private static $ persistHandler = null ;
29-
3023 /**
3124 * Create an entity
25+ * TODO: un-comment this function after MQE-1904
3226 *
3327 * @param string $key StepKey of the createData action.
3428 * @param string $scope
@@ -38,6 +32,7 @@ class MagentoActionProxies extends CodeceptionModule
3832 * @param string $storeCode
3933 * @return void
4034 */
35+ /*
4136 public function createEntity(
4237 $key,
4338 $scope,
@@ -46,11 +41,7 @@ public function createEntity(
4641 $overrideFields = [],
4742 $storeCode = ''
4843 ) {
49- if (!self ::$ persistHandler ) {
50- self ::$ persistHandler = PersistedObjectHandler::getInstance ();
51- }
52-
53- self ::$ persistHandler ->createEntity (
44+ PersistedObjectHandler::getInstance()->createEntity(
5445 $key,
5546 $scope,
5647 $entity,
@@ -59,32 +50,31 @@ public function createEntity(
5950 $storeCode
6051 );
6152 }
62-
53+ */
6354 /**
6455 * Retrieves and updates a previously created entity
56+ * TODO: un-comment this function after MQE-1904
6557 *
6658 * @param string $key StepKey of the createData action.
6759 * @param string $scope
6860 * @param string $updateEntity Name of the static XML data to update the entity with.
6961 * @param array $dependentObjectKeys StepKeys of other createData actions that are required.
7062 * @return void
7163 */
64+ /*
7265 public function updateEntity($key, $scope, $updateEntity, $dependentObjectKeys = [])
7366 {
74- if (!self ::$ persistHandler ) {
75- self ::$ persistHandler = PersistedObjectHandler::getInstance ();
76- }
77-
78- self ::$ persistHandler ->updateEntity (
67+ PersistedObjectHandler::getInstance()->updateEntity(
7968 $key,
8069 $scope,
8170 $updateEntity,
8271 $dependentObjectKeys
8372 );
8473 }
85-
74+ */
8675 /**
8776 * Performs GET on given entity and stores entity for use
77+ * TODO: un-comment this function after MQE-1904
8878 *
8979 * @param string $key StepKey of getData action.
9080 * @param string $scope
@@ -94,13 +84,10 @@ public function updateEntity($key, $scope, $updateEntity, $dependentObjectKeys =
9484 * @param integer $index
9585 * @return void
9686 */
87+ /*
9788 public function getEntity($key, $scope, $entity, $dependentObjectKeys = [], $storeCode = '', $index = null)
9889 {
99- if (!self ::$ persistHandler ) {
100- self ::$ persistHandler = PersistedObjectHandler::getInstance ();
101- }
102-
103- self ::$ persistHandler ->getEntity (
90+ PersistedObjectHandler::getInstance()->getEntity(
10491 $key,
10592 $scope,
10693 $entity,
@@ -109,49 +96,48 @@ public function getEntity($key, $scope, $entity, $dependentObjectKeys = [], $sto
10996 $index
11097 );
11198 }
112-
99+ */
113100 /**
114101 * Retrieves and deletes a previously created entity
102+ * TODO: un-comment this function after MQE-1904
115103 *
116104 * @param string $key StepKey of the createData action.
117105 * @param string $scope
118106 * @return void
119107 */
108+ /*
120109 public function deleteEntity($key, $scope)
121110 {
122- if (!self ::$ persistHandler ) {
123- self ::$ persistHandler = PersistedObjectHandler::getInstance ();
124- }
125-
126- self ::$ persistHandler ->deleteEntity ($ key , $ scope );
111+ PersistedObjectHandler::getInstance()->deleteEntity($key, $scope);
127112 }
128-
113+ */
129114 /**
130115 * Retrieves a field from an entity, according to key and scope given
116+ * TODO: un-comment this function after MQE-1904
131117 *
132118 * @param string $stepKey
133119 * @param string $field
134120 * @param string $scope
135121 * @return string
136122 */
123+ /*
137124 public function retrieveEntityField($stepKey, $field, $scope)
138125 {
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);
144127 }
145-
128+ */
146129 /**
147130 * Get encrypted value by key
131+ * TODO: un-comment this function after MQE-1904
148132 *
149133 * @param string $key
150134 * @return string|null
151135 * @throws TestFrameworkException
152136 */
137+ /*
153138 public function getSecret($key)
154139 {
155140 return CredentialStore::getInstance()->getSecret($key);
156141 }
142+ */
157143}
0 commit comments