Skip to content

Commit c5b040c

Browse files
author
Oleksii Korshenko
committed
MAGETWO-69452: Remove zend json from form elements #9754
- fixed static tests
1 parent d86bcde commit c5b040c

File tree

1 file changed

+6
-4
lines changed
  • lib/internal/Magento/Framework/Data/Test/Unit/Form/Element

1 file changed

+6
-4
lines changed

lib/internal/Magento/Framework/Data/Test/Unit/Form/Element/EditorTest.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -210,13 +210,15 @@ public function testGetConfig()
210210
*/
211211
public function testGetTranslatedString()
212212
{
213+
$callback = function ($params) {
214+
return json_encode($params);
215+
};
216+
213217
$this->configMock->expects($this->any())->method('getData')->withConsecutive(['enabled'])->willReturn(true);
214218
$this->serializer->expects($this->any())
215219
->method('serialize')
216-
->willReturnCallback(function ($params) {
217-
return json_encode($params);
218-
}
219-
);
220+
->willReturnCallback($callback);
221+
220222
$html = $this->model->getElementHtml();
221223

222224
$this->assertRegExp('/.*"Insert Image...":"Insert Image...".*/i', $html);

0 commit comments

Comments
 (0)