Skip to content

Commit c43e369

Browse files
author
Bryant Luk
committed
MAGETWO-36063: Update REST and SOAP controllers to filter out attributes based on ACL
- Fix integration tests
1 parent 63749af commit c43e369

File tree

1 file changed

+16
-4
lines changed
  • dev/tests/integration/testsuite/Magento/Framework/Api/Config

1 file changed

+16
-4
lines changed

dev/tests/integration/testsuite/Magento/Framework/Api/Config/ReaderTest.php

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,24 @@ public function testMerge()
7676
$expectedArray = [
7777
'Magento\Tax\Api\Data\TaxRateInterface' => [],
7878
'Magento\Catalog\Api\Data\Product' => [
79-
'stock_item' => "Magento\CatalogInventory\Api\Data\StockItem",
79+
'stock_item' => [
80+
"type" => "Magento\CatalogInventory\Api\Data\StockItem",
81+
"resourceRefs" => [],
82+
],
8083
],
8184
'Magento\Customer\Api\Data\CustomerInterface' => [
82-
'custom_1' => "Magento\Customer\Api\Data\CustomerCustom",
83-
'custom_2' => "Magento\CustomerExtra\Api\Data\CustomerCustom22",
84-
'custom_3' => "Magento\Customer\Api\Data\CustomerCustom3",
85+
'custom_1' => [
86+
"type" => "Magento\Customer\Api\Data\CustomerCustom",
87+
"resourceRefs" => [],
88+
],
89+
'custom_2' => [
90+
"type" => "Magento\CustomerExtra\Api\Data\CustomerCustom22",
91+
"resourceRefs" => [],
92+
],
93+
'custom_3' => [
94+
"type" => "Magento\Customer\Api\Data\CustomerCustom3",
95+
"resourceRefs" => [],
96+
],
8597
],
8698
];
8799

0 commit comments

Comments
 (0)