Skip to content

Commit

Permalink
Fixed coding standard error
Browse files Browse the repository at this point in the history
  • Loading branch information
gelanivishal authored Jun 11, 2018
1 parent 9e5757d commit 1555b96
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,13 @@ public function testShipmentGet()
foreach ($data as $key => $value) {
if (!empty($value)) {
if ($key === ExtensibleDataInterface::EXTENSION_ATTRIBUTES_KEY) {
foreach ($value as $extensionAttributeKey => $extensionAttributeValue) {
foreach ($value as $key => $value) {
$simpleObject = $this->objectManager->get(Magento\Framework\Api\SimpleDataObjectConverter::class);
$methodName = 'get' .
SimpleDataObjectConverter::snakeCaseToUpperCamelCase($extensionAttributeKey);
$simpleObject->snakeCaseToUpperCamelCase($key);
$this->assertEquals(
$shipment->getExtensionAttributes()->$methodName(),
$extensionAttributeValue
$value
);
}
} else {
Expand Down

0 comments on commit 1555b96

Please sign in to comment.