Skip to content

Commit 5e8e8b4

Browse files
committed
MAGETWO-80081: Merge magento#11058 commit 'refs/pull/11058/head' of https://github.com/magento/magento2 into MAGETWO-80081-PR-11058
- fixed unit tests
1 parent b4afec8 commit 5e8e8b4

File tree

1 file changed

+2
-2
lines changed
  • app/code/Magento/Sales/Test/Unit/Ui/Component/Listing/Column

1 file changed

+2
-2
lines changed

app/code/Magento/Sales/Test/Unit/Ui/Component/Listing/Column/AddressTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function testPrepareDataSource()
4747
{
4848
$itemName = 'itemName';
4949
$oldItemValue = "itemValue\n";
50-
$newItemValue = 'itemValue<br/>';
50+
$newItemValue = "itemValue<br />\n";
5151
$dataSource = [
5252
'data' => [
5353
'items' => [
@@ -57,7 +57,7 @@ public function testPrepareDataSource()
5757
];
5858

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

0 commit comments

Comments
 (0)