Skip to content
This repository was archived by the owner on Apr 29, 2019. It is now read-only.

Commit 478b0ec

Browse files
committed
MAGETWO-71520: Product Grid filtered to Store View is broken if corresponding Store is deleted
- fix unit test
1 parent 550ae56 commit 478b0ec

File tree

1 file changed

+0
-16
lines changed
  • app/code/Magento/Ui/Test/Unit/Controller/Adminhtml/Index

1 file changed

+0
-16
lines changed

app/code/Magento/Ui/Test/Unit/Controller/Adminhtml/Index/RenderTest.php

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,6 @@ class RenderTest extends \PHPUnit\Framework\TestCase
8484
*/
8585
private $resultJsonFactoryMock;
8686

87-
/**
88-
* @var \Magento\Framework\Escaper|\PHPUnit_Framework_MockObject_MockObject
89-
*/
90-
private $escaperMock;
91-
9287
/**
9388
* @var \Psr\Log\LoggerInterface|\PHPUnit_Framework_MockObject_MockObject
9489
*/
@@ -141,12 +136,6 @@ protected function setUp()
141136
->disableOriginalConstructor()
142137
->getMock();
143138

144-
$this->escaperMock = $this->getMockBuilder(
145-
\Magento\Framework\Escaper::class
146-
)
147-
->disableOriginalConstructor()
148-
->getMock();
149-
150139
$this->loggerMock = $this->getMockForAbstractClass(\Psr\Log\LoggerInterface::class);
151140

152141
$this->contextMock->expects($this->any())
@@ -179,7 +168,6 @@ protected function setUp()
179168
'context' => $this->contextMock,
180169
'factory' => $this->uiFactoryMock,
181170
'resultJsonFactory' => $this->resultJsonFactoryMock,
182-
'escaper' => $this->escaperMock,
183171
'logger' => $this->loggerMock
184172
]
185173
);
@@ -218,10 +206,6 @@ public function testExecuteAjaxRequestException()
218206
->method('critical')
219207
->willReturnSelf();
220208

221-
$this->escaperMock->expects($this->once())
222-
->method('escapeHtml')
223-
->willReturnSelf();
224-
225209
$this->dataProviderMock->expects($this->once())
226210
->method('getConfigData')
227211
->willReturn([]);

0 commit comments

Comments
 (0)