Skip to content

Commit 5cf7138

Browse files
committed
MQE-654: Allow easy access to custom/extension attributes values in test.
(cherry picked from commit 6d8ea5c)
1 parent 73f9a9a commit 5cf7138

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ private function setCreatedObject($response, $index, $requestDataArray, $isJson)
184184
if (is_array($responseData)) {
185185
$persistedData = $this->convertToFlatArray(array_merge(
186186
$requestDataArray,
187-
$this->convertCustomAndExtensionAttributesArray($responseData)
187+
$this->convertCustomAttributesArray($responseData)
188188
));
189189
} else {
190190
$persistedData = $this->convertToFlatArray(array_merge($requestDataArray, ['return' => $responseData]));
@@ -230,7 +230,7 @@ private function convertToFlatArray($arrayIn, $rootKey = '')
230230
}
231231

232232
/**
233-
* Convert custom_attributes and extension_attributes array from
233+
* Convert custom_attributes array from
234234
* e.g.
235235
* 'custom_attributes' => [
236236
* 0 => [
@@ -253,9 +253,9 @@ private function convertToFlatArray($arrayIn, $rootKey = '')
253253
* @param array $arrayIn
254254
* @return array
255255
*/
256-
private function convertCustomAndExtensionAttributesArray($arrayIn)
256+
private function convertCustomAttributesArray($arrayIn)
257257
{
258-
$keys = ['custom_attributes', 'extension_attributes'];
258+
$keys = ['custom_attributes'];
259259
foreach($keys as $key) {
260260
if(!array_key_exists($key, $arrayIn)) {
261261
continue;

0 commit comments

Comments
 (0)