Skip to content

Commit

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

0 comments on commit 039e71c

Please sign in to comment.