Skip to content

Commit

Permalink
⏫ Forwardport of #11058 to 2.3-develop branch
Browse files Browse the repository at this point in the history
  • Loading branch information
p-bystritsky committed Jan 24, 2018
1 parent 076b903 commit 5d174b8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public function testPrepareDataSource()
{
$itemName = 'itemName';
$oldItemValue = "itemValue\n";
$newItemValue = 'itemValue<br/>';
$newItemValue = "itemValue<br />\n";
$dataSource = [
'data' => [
'items' => [
Expand All @@ -57,7 +57,7 @@ public function testPrepareDataSource()
];

$this->model->setData('name', $itemName);
$this->escaper->expects($this->once())->method('escapeHtml')->with($newItemValue)->willReturnArgument(0);
$this->escaper->expects($this->any())->method('escapeHtml')->with($oldItemValue)->willReturnArgument(0);
$dataSource = $this->model->prepareDataSource($dataSource);
$this->assertEquals($newItemValue, $dataSource['data']['items'][0][$itemName]);
}
Expand Down

0 comments on commit 5d174b8

Please sign in to comment.