File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -155,10 +155,7 @@ public function prepareData($name)
155
155
{
156
156
if ($ name === null || $ this ->hasData ($ name )) {
157
157
throw new LocalizedException (
158
- new \Magento \Framework \Phrase (
159
- 'Initialization error component, check the '
160
- . 'spelling of the name or the correctness of the call. '
161
- )
158
+ new \Magento \Framework \Phrase ("Invalid UI Component element name: '%1' " , [$ name ])
162
159
);
163
160
}
164
161
$ this ->componentsPool = $ this ->arrayObjectFactory ->create ();
Original file line number Diff line number Diff line change @@ -126,11 +126,11 @@ public function testGetReader()
126
126
$ this ->assertEquals ($ this ->uiReader , $ this ->manager ->getReader ('some_name ' ));
127
127
}
128
128
129
- public function testPrepareDataWithException ()
129
+ public function testPrepareDataWithoutName ()
130
130
{
131
131
$ this ->setExpectedException (
132
132
'Magento\Framework\Exception\LocalizedException ' ,
133
- __ (' Initialization error component, check the spelling of the name or the correctness of the call. ' )
133
+ __ (" Invalid UI Component element name: '' " )
134
134
);
135
135
$ this ->manager ->prepareData (null );
136
136
}
You can’t perform that action at this time.
0 commit comments