Skip to content

Commit 24d38d3

Browse files
committed
MAGETWO-60381: Disable fields functionality doesn't work for theme configuration
1 parent fcb1512 commit 24d38d3

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

app/code/Magento/Theme/Test/Unit/Model/Design/Config/DataProviderTest.php

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,11 +149,13 @@ public function testGetMeta(array $inputMeta, array $expectedMeta, array $reques
149149
->method('isReadOnly')
150150
->withConsecutive(
151151
['design/head/welcome', 'stores', 'default'],
152-
['design/head/logo', 'stores', 'default']
152+
['design/head/logo', 'stores', 'default'],
153+
['design/head/head', 'stores', 'default']
153154
)
154155
->willReturnOnConsecutiveCalls(
155156
true,
156-
false
157+
false,
158+
true
157159
);
158160

159161
$this->objectManager->setBackwardCompatibleProperty(
@@ -193,6 +195,9 @@ public function getMetaDataProvider()
193195
],
194196
'head_logo' => [
195197

198+
],
199+
'head_head' => [
200+
196201
]
197202
]
198203
]
@@ -216,6 +221,16 @@ public function getMetaDataProvider()
216221
],
217222
'head_logo' => [
218223

224+
],
225+
'head_head' => [
226+
'arguments' => [
227+
'data' => [
228+
'config' => [
229+
'disabled' => true,
230+
'is_disable_inheritance' => true,
231+
]
232+
]
233+
]
219234
]
220235
]
221236
]

0 commit comments

Comments
 (0)