Skip to content

Commit 092f67b

Browse files
committed
AC-10528:Fix for Order Invoice Comment
1 parent b2d1580 commit 092f67b

File tree

2 files changed

+5
-3
lines changed
  • app/code/Magento/Sales/Test/Unit/Controller/Adminhtml/Order/Invoice
  • dev/tests/integration/testsuite/Magento/Sales/Controller/Adminhtml/Order/Invoice

2 files changed

+5
-3
lines changed

app/code/Magento/Sales/Test/Unit/Controller/Adminhtml/Order/Invoice/AddCommentTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ class AddCommentTest extends TestCase
105105
/**
106106
* @var Escaper|MockObject
107107
*/
108-
protected $escaper;
108+
private $escaper;
109109

110110
/**
111111
* SetUp method

dev/tests/integration/testsuite/Magento/Sales/Controller/Adminhtml/Order/Invoice/AddCommentTest.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99

1010
use PHPUnit\Framework\Constraint\RegularExpression;
1111
use PHPUnit\Framework\Constraint\StringContains;
12+
use Magento\TestFramework\Helper\Bootstrap;
13+
use Magento\Framework\Escaper;
1214

1315
/**
1416
* Class verifies invoice add comment functionality.
@@ -40,8 +42,8 @@ public function testSendEmailOnAddInvoiceComment(): void
4042

4143
$html = $this->getResponse()->getBody();
4244

43-
$escaper = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()
44-
->get(\Magento\Framework\Escaper::class);
45+
$escaper = Bootstrap::getObjectManager()
46+
->get(Escaper::class);
4547

4648
$this->assertStringContainsString($escaper->escapeHtml($comment), $html);
4749

0 commit comments

Comments
 (0)