Skip to content

Commit

Permalink
MAGETWO-69452: Remove zend json from form elements #9754
Browse files Browse the repository at this point in the history
 - fixed static tests
  • Loading branch information
Oleksii Korshenko committed Jun 29, 2017
1 parent d86bcde commit c5b040c
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -210,13 +210,15 @@ public function testGetConfig()
*/
public function testGetTranslatedString()
{
$callback = function ($params) {
return json_encode($params);
};

$this->configMock->expects($this->any())->method('getData')->withConsecutive(['enabled'])->willReturn(true);
$this->serializer->expects($this->any())
->method('serialize')
->willReturnCallback(function ($params) {
return json_encode($params);
}
);
->willReturnCallback($callback);

$html = $this->model->getElementHtml();

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

0 comments on commit c5b040c

Please sign in to comment.