File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -156,8 +156,7 @@ public function prepareData($name)
156
156
if ($ name === null || $ this ->hasData ($ name )) {
157
157
throw new LocalizedException (
158
158
new \Magento \Framework \Phrase (
159
- 'Initialization error component, check the '
160
- . 'spelling of the name or the correctness of the call. '
159
+ "Invalid UI Component element name: '%1' " , [$ name ]
161
160
)
162
161
);
163
162
}
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