Skip to content

Commit 4d25859

Browse files
author
Igor Melnikov
committed
MAGETWO-63001: Create static test
- whitelisting missing class - changing suggestion message
1 parent d98fc27 commit 4d25859

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

dev/tests/static/testsuite/Magento/Test/Legacy/_files/restricted_classes.php

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@
126126
]
127127
],
128128
'ArrayObject' => [
129-
'replacement' => 'ArrayObject with overwritten serialize/unserialize methods',
129+
'replacement' => 'Custom class, extended from ArrayObject with overwritten serialize/unserialize methods',
130130
'exclude' => [
131131
[
132132
'type' => 'module',
@@ -194,5 +194,26 @@
194194
'path' => 'Indexer/Action/Base.php'
195195
]
196196
]
197+
],
198+
'Magento\Framework\View\Element\UiComponent\ArrayObjectFactory' => [
199+
'replacement' => 'Factory that creates custom class, extended from ArrayObject with overwritten '
200+
. 'serialize/unserialize methods',
201+
'exclude' => [
202+
[
203+
'type' => 'module',
204+
'name' => 'Magento_Ui',
205+
'path' => 'Model/Manager.php'
206+
],
207+
[
208+
'type' => 'module',
209+
'name' => 'Magento_Ui',
210+
'path' => 'Test/Unit/Model/ManagerTest.php'
211+
],
212+
[
213+
'type' => 'library',
214+
'name' => 'magento/framework',
215+
'path' => 'View/Element/UiComponent/Config/Provider/Component/Definition.php'
216+
]
217+
]
197218
]
198219
];

0 commit comments

Comments
 (0)