@@ -84,11 +84,6 @@ class RenderTest extends \PHPUnit\Framework\TestCase
84
84
*/
85
85
private $ resultJsonFactoryMock ;
86
86
87
- /**
88
- * @var \Magento\Framework\Escaper|\PHPUnit_Framework_MockObject_MockObject
89
- */
90
- private $ escaperMock ;
91
-
92
87
/**
93
88
* @var \Psr\Log\LoggerInterface|\PHPUnit_Framework_MockObject_MockObject
94
89
*/
@@ -141,12 +136,6 @@ protected function setUp()
141
136
->disableOriginalConstructor ()
142
137
->getMock ();
143
138
144
- $ this ->escaperMock = $ this ->getMockBuilder (
145
- \Magento \Framework \Escaper::class
146
- )
147
- ->disableOriginalConstructor ()
148
- ->getMock ();
149
-
150
139
$ this ->loggerMock = $ this ->getMockForAbstractClass (\Psr \Log \LoggerInterface::class);
151
140
152
141
$ this ->contextMock ->expects ($ this ->any ())
@@ -179,7 +168,6 @@ protected function setUp()
179
168
'context ' => $ this ->contextMock ,
180
169
'factory ' => $ this ->uiFactoryMock ,
181
170
'resultJsonFactory ' => $ this ->resultJsonFactoryMock ,
182
- 'escaper ' => $ this ->escaperMock ,
183
171
'logger ' => $ this ->loggerMock
184
172
]
185
173
);
@@ -218,10 +206,6 @@ public function testExecuteAjaxRequestException()
218
206
->method ('critical ' )
219
207
->willReturnSelf ();
220
208
221
- $ this ->escaperMock ->expects ($ this ->once ())
222
- ->method ('escapeHtml ' )
223
- ->willReturnSelf ();
224
-
225
209
$ this ->dataProviderMock ->expects ($ this ->once ())
226
210
->method ('getConfigData ' )
227
211
->willReturn ([]);
0 commit comments