File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
lib/internal/Magento/Framework/Data/Test/Unit/Form/Element Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -210,13 +210,15 @@ public function testGetConfig()
210
210
*/
211
211
public function testGetTranslatedString ()
212
212
{
213
+ $ callback = function ($ params ) {
214
+ return json_encode ($ params );
215
+ };
216
+
213
217
$ this ->configMock ->expects ($ this ->any ())->method ('getData ' )->withConsecutive (['enabled ' ])->willReturn (true );
214
218
$ this ->serializer ->expects ($ this ->any ())
215
219
->method ('serialize ' )
216
- ->willReturnCallback (function ($ params ) {
217
- return json_encode ($ params );
218
- }
219
- );
220
+ ->willReturnCallback ($ callback );
221
+
220
222
$ html = $ this ->model ->getElementHtml ();
221
223
222
224
$ this ->assertRegExp ('/.*"Insert Image...":"Insert Image...".*/i ' , $ html );
You can’t perform that action at this time.
0 commit comments