Skip to content

Commit 1555b96

Browse files
authored
Fixed coding standard error
1 parent 9e5757d commit 1555b96

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

dev/tests/api-functional/testsuite/Magento/Sales/Service/V1/ShipmentGetTest.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,13 @@ public function testShipmentGet()
6060
foreach ($data as $key => $value) {
6161
if (!empty($value)) {
6262
if ($key === ExtensibleDataInterface::EXTENSION_ATTRIBUTES_KEY) {
63-
foreach ($value as $extensionAttributeKey => $extensionAttributeValue) {
63+
foreach ($value as $key => $value) {
64+
$simpleObject = $this->objectManager->get(Magento\Framework\Api\SimpleDataObjectConverter::class);
6465
$methodName = 'get' .
65-
SimpleDataObjectConverter::snakeCaseToUpperCamelCase($extensionAttributeKey);
66+
$simpleObject->snakeCaseToUpperCamelCase($key);
6667
$this->assertEquals(
6768
$shipment->getExtensionAttributes()->$methodName(),
68-
$extensionAttributeValue
69+
$value
6970
);
7071
}
7172
} else {

0 commit comments

Comments
 (0)