Skip to content

Commit 08d96f2

Browse files
committed
AC-15049 : [CE] PHPUnit 12: Upgrade Security & Authentication related test cases
1 parent fa3168b commit 08d96f2

File tree

1 file changed

+1
-2
lines changed
  • app/code/Magento/Captcha/Test/Unit/Controller/Refresh

1 file changed

+1
-2
lines changed

app/code/Magento/Captcha/Test/Unit/Controller/Refresh/IndexTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
use Magento\Framework\Controller\Result\JsonFactory as ResultJsonFactory;
1717
use Magento\Framework\Serialize\Serializer\Json as JsonSerializer;
1818
use Magento\Framework\TestFramework\Unit\Helper\MockCreationTrait;
19-
use Magento\Framework\View\Element\AbstractBlock;
2019
use Magento\Framework\View\Element\BlockInterface;
2120
use Magento\Framework\View\LayoutInterface;
2221
use PHPUnit\Framework\MockObject\MockObject;
@@ -61,7 +60,7 @@ protected function setUp(): void
6160
$this->requestMock = $this->createPartialMock(HttpRequest::class, ['getPost', 'getContent']);
6261
$this->layoutMock = $this->createMock(LayoutInterface::class);
6362
$this->blockMock = $this->createPartialMockWithReflection(
64-
AbstractBlock::class,
63+
BlockInterface::class,
6564
['setFormId', 'setIsAjax', 'toHtml']
6665
);
6766
$this->jsonResultFactoryMock = $this->createMock(ResultJsonFactory::class);

0 commit comments

Comments
 (0)