Skip to content

Commit e9d37df

Browse files
committed
MAGETWO-35264: Unable to request Soap service without plugging in CustomAttributeMap config
- Removed unused variable - Updated test case
1 parent f2bd17a commit e9d37df

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

app/code/Magento/Eav/Model/EavCustomAttributeTypeLocator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public function getAllServiceDataInterfaces()
8080
return [];
8181
} else {
8282
foreach ($this->serviceBackendModelDataInterfaceMap as $serviceArray) {
83-
foreach ($serviceArray as $backendModel => $dataInterface) {
83+
foreach ($serviceArray as $dataInterface) {
8484
$dataInterfaceArray[] = $dataInterface;
8585
}
8686
}

app/code/Magento/Eav/Test/Unit/Model/EavCustomAttributeTypeLocatorTest.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -158,13 +158,14 @@ public function testGetAllServiceDataInterface()
158158
{
159159
$serviceBackendModelDataInterfaceMapData = [
160160
'ServiceA' => ['BackedA' => 'ServiceDataInterfaceA'],
161-
'ServiceB' => ['BackedB' => 'ServiceDataInterfaceB'],
162-
'ServiceC' => ['BackedC' => 'ServiceDataInterfaceC']
161+
'ServiceB' => ['BackedB' => 'ServiceDataInterfaceB', 'BackedC' => 'ServiceDataInterfaceC'],
162+
'ServiceC' => ['BackedD' => 'ServiceDataInterfaceD']
163163
];
164164
$this->eavCustomAttributeTypeLocator = new EavCustomAttributeTypeLocator(
165-
$this->attributeRepository, [], $serviceBackendModelDataInterfaceMapData);
165+
$this->attributeRepository, [], $serviceBackendModelDataInterfaceMapData
166+
);
166167
$this->assertEquals(
167-
['ServiceDataInterfaceA', 'ServiceDataInterfaceB', 'ServiceDataInterfaceC'],
168+
['ServiceDataInterfaceA', 'ServiceDataInterfaceB', 'ServiceDataInterfaceC', 'ServiceDataInterfaceD'],
168169
$this->eavCustomAttributeTypeLocator->getAllServiceDataInterfaces()
169170
);
170171
}

0 commit comments

Comments
 (0)