Skip to content

Commit 04ea4ab

Browse files
committed
33299: Fixed Code
1 parent 842f9f5 commit 04ea4ab

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Magento/FunctionalTestingFramework/DataGenerator/Persist/DataPersistenceHandler.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public function createEntity($storeCode = null)
8989
}
9090
$curlHandler = ObjectManagerFactory::getObjectManager()->create(
9191
CurlHandler::class,
92-
['create', $this->entityObject, $this->storeCode]
92+
['operation' => 'create', 'entityObject' => $this->entityObject, 'storeCode' => $this->storeCode]
9393
);
9494
$result = $curlHandler->executeRequest($this->dependentObjects);
9595
$this->setCreatedObject(
@@ -117,7 +117,7 @@ public function updateEntity($updateDataName, $updateDependentObjects = [])
117117
$updateEntityObject = DataObjectHandler::getInstance()->getObject($updateDataName);
118118
$curlHandler = ObjectManagerFactory::getObjectManager()->create(
119119
CurlHandler::class,
120-
['update', $updateEntityObject, $this->storeCode]
120+
['operation' => 'update', 'entityObject' => $updateEntityObject, 'storeCode' => $this->storeCode]
121121
);
122122
$result = $curlHandler->executeRequest(array_merge($this->dependentObjects, [$this->createdObject]));
123123
$this->setCreatedObject(
@@ -143,7 +143,7 @@ public function getEntity($index = null, $storeCode = null)
143143
}
144144
$curlHandler = ObjectManagerFactory::getObjectManager()->create(
145145
CurlHandler::class,
146-
['get', $this->entityObject, $this->storeCode]
146+
['operation' => 'get', 'entityObject' => $this->entityObject, 'storeCode' => $this->storeCode]
147147
);
148148
$result = $curlHandler->executeRequest($this->dependentObjects);
149149
$this->setCreatedObject(
@@ -164,7 +164,7 @@ public function deleteEntity()
164164
{
165165
$curlHandler = ObjectManagerFactory::getObjectManager()->create(
166166
CurlHandler::class,
167-
['delete', $this->createdObject, $this->storeCode]
167+
['operation' => 'delete', 'entityObject' => $this->createdObject, 'storeCode' => $this->storeCode]
168168
);
169169

170170
$curlHandler->executeRequest($this->dependentObjects);

0 commit comments

Comments
 (0)