Skip to content

Commit cc141ac

Browse files
Yushkin, DmytroYaroslav Voronoy
authored andcommitted
MAGETWO-45594: XSS code still can be saved into database
- Fix by static tests
1 parent a88c7cf commit cc141ac

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/code/Magento/Paypal/Test/Unit/Controller/Payflow/ReturnUrlTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
use Magento\Checkout\Model\Session;
1111
use Magento\Framework\App\Http;
1212
use Magento\Framework\App\View;
13+
use Magento\Framework\App\ViewInterface;
1314
use Magento\Framework\View\LayoutInterface;
1415
use Magento\Paypal\Controller\Payflow\ReturnUrl;
1516
use Magento\Paypal\Controller\Payflowadvanced\ReturnUrl as PayflowadvancedReturnUrl;
@@ -99,7 +100,7 @@ class ReturnUrlTest extends \PHPUnit_Framework_TestCase
99100
protected function setUp()
100101
{
101102
$this->contextMock = $this->getMock(Context::class, [], [], '', false);
102-
$this->viewMock = $this->getMock(ViewInterface::class, ['loadLayout', 'getLayout', 'renderLayout']);
103+
$this->viewMock = $this->getMock(ViewInterface::class);
103104
$this->requestMock = $this->getMock(Http::class, ['getParam'], [], '', false);
104105
$this->layoutMock = $this->getMock(LayoutInterface::class);
105106
$this->blockMock = $this

0 commit comments

Comments
 (0)