@@ -155,6 +155,7 @@ public function testLoadLayoutWhenLayoutAlreadyLoaded(): void
155
155
$ this ->expectException ('RuntimeException ' );
156
156
$ this ->expectExceptionMessage ('Layout must be loaded only once. ' );
157
157
$ this ->_view ->setIsLayoutLoaded (true );
158
+ // phpcs:ignore Magento2.Legacy.ObsoleteResponse
158
159
$ this ->_view ->loadLayout ();
159
160
}
160
161
@@ -167,6 +168,7 @@ public function testLoadLayoutWithDefaultSetup(): void
167
168
->method ('addHandle ' )
168
169
->withConsecutive (['default ' ]);
169
170
$ this ->_requestMock ->method ('getFullActionName ' )->willReturn ('action_name ' );
171
+ // phpcs:ignore Magento2.Legacy.ObsoleteResponse
170
172
$ this ->_view ->loadLayout ();
171
173
}
172
174
@@ -176,6 +178,7 @@ public function testLoadLayoutWithDefaultSetup(): void
176
178
public function testLoadLayoutWhenBlocksNotGenerated (): void
177
179
{
178
180
$ this ->_requestMock ->method ('getFullActionName ' )->willReturn ('action_name ' );
181
+ // phpcs:ignore Magento2.Legacy.ObsoleteResponse
179
182
$ this ->_view ->loadLayout ('' , false , true );
180
183
}
181
184
@@ -185,6 +188,7 @@ public function testLoadLayoutWhenBlocksNotGenerated(): void
185
188
public function testLoadLayoutWhenXmlNotGenerated (): void
186
189
{
187
190
$ this ->_requestMock ->method ('getFullActionName ' )->willReturn ('action_name ' );
191
+ // phpcs:ignore Magento2.Legacy.ObsoleteResponse
188
192
$ this ->_view ->loadLayout ('' , true , false );
189
193
}
190
194
@@ -270,6 +274,7 @@ public function testRenderLayoutIfActionFlagExist(): void
270
274
->with ('' , 'no-renderLayout ' )
271
275
->willReturn (true );
272
276
$ this ->_eventManagerMock ->expects ($ this ->never ())->method ('dispatch ' );
277
+ // phpcs:ignore Magento2.Legacy.ObsoleteResponse
273
278
$ this ->_view ->renderLayout ();
274
279
}
275
280
@@ -284,6 +289,7 @@ public function testRenderLayoutWhenOutputNotEmpty(): void
284
289
->willReturn (false );
285
290
$ this ->_layoutMock ->expects ($ this ->once ())->method ('addOutputElement ' )->with ('output ' );
286
291
$ this ->resultPage ->expects ($ this ->once ())->method ('renderResult ' )->with ($ this ->response );
292
+ // phpcs:ignore Magento2.Legacy.ObsoleteResponse
287
293
$ this ->_view ->renderLayout ('output ' );
288
294
}
289
295
@@ -299,6 +305,7 @@ public function testRenderLayoutWhenOutputEmpty(): void
299
305
300
306
$ this ->_layoutMock ->expects ($ this ->never ())->method ('addOutputElement ' );
301
307
$ this ->resultPage ->expects ($ this ->once ())->method ('renderResult ' )->with ($ this ->response );
308
+ // phpcs:ignore Magento2.Legacy.ObsoleteResponse
302
309
$ this ->_view ->renderLayout ();
303
310
}
304
311
}
0 commit comments