File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
Controller/Adminhtml/Order/Invoice
Test/Unit/Controller/Adminhtml/Order/Invoice
dev/tests/integration/testsuite/Magento/Sales/Controller/Adminhtml/Order/Invoice Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ public function execute()
104
104
if (empty ($ data ['comment ' ])) {
105
105
throw new LocalizedException (__ ('The comment is missing. Enter and try again. ' ));
106
106
}
107
- $ comment = $ this ->escaper ->escapeHtmlAttr ($ data ['comment ' ]);
107
+ $ comment = $ this ->escaper ->escapeHtml ($ data ['comment ' ]);
108
108
109
109
$ invoice = $ this ->getInvoice ();
110
110
if (!$ invoice ) {
Original file line number Diff line number Diff line change @@ -191,7 +191,7 @@ protected function setUp(): void
191
191
->disableOriginalConstructor ()
192
192
->getMockForAbstractClass ();
193
193
194
- $ this ->escaper = $ this ->createPartialMock (Escaper::class, ['escapeHtmlAttr ' ]);
194
+ $ this ->escaper = $ this ->createPartialMock (Escaper::class, ['escapeHtml ' ]);
195
195
196
196
$ this ->controller = $ objectManager ->getObject (
197
197
AddComment::class,
@@ -277,7 +277,7 @@ public function testExecute(): void
277
277
->with ($ invoiceMock , false , $ data ['comment ' ]);
278
278
279
279
$ this ->escaper ->expects ($ this ->any ())
280
- ->method ('escapeHtmlAttr ' )
280
+ ->method ('escapeHtml ' )
281
281
->willReturn ($ data ['comment ' ]);
282
282
283
283
$ resultRaw = $ this ->getMockBuilder (Raw::class)
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ public function testSendEmailOnAddInvoiceComment(): void
43
43
$ escaper = \Magento \TestFramework \Helper \Bootstrap::getObjectManager ()
44
44
->get (\Magento \Framework \Escaper::class);
45
45
46
- $ this ->assertStringContainsString ($ escaper ->escapeHtmlAttr ($ comment ), $ html );
46
+ $ this ->assertStringContainsString ($ escaper ->escapeHtml ($ comment ), $ html );
47
47
48
48
$ message = $ this ->transportBuilder ->getSentMessage ();
49
49
$ this ->assertNotNull ($ message );
You can’t perform that action at this time.
0 commit comments