Skip to content

Commit c7fefd5

Browse files
committed
MC-33706: Merge 2.4-develop into 2.4-develop-php74
1 parent 9ad86c3 commit c7fefd5

File tree

31 files changed

+51
-48
lines changed

31 files changed

+51
-48
lines changed

app/code/Magento/Customer/Test/Unit/Model/EmailNotificationTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ public function testEmailNotifyWhenCredentialsChanged(
323323
->withConsecutive([$oldEmail, self::STUB_CUSTOMER_NAME], [$newEmail, self::STUB_CUSTOMER_NAME])
324324
->willReturnSelf();
325325

326-
$transport = $this->createMock(TransportInterface::class);
326+
$transport = $this->getMockForAbstractClass(TransportInterface::class);
327327

328328
$this->transportBuilderMock->expects(clone $expects)
329329
->method('getTransport')
@@ -813,7 +813,7 @@ private function mockDefaultTransportBuilder(
813813
string $customerName,
814814
array $templateVars = []
815815
):void {
816-
$transportMock = $this->createMock(TransportInterface::class);
816+
$transportMock = $this->getMockForAbstractClass(TransportInterface::class);
817817

818818
$this->transportBuilderMock->expects($this->once())
819819
->method('setTemplateIdentifier')

app/code/Magento/MediaGallery/Test/Unit/Model/Directory/IsBlacklistedTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ protected function setUp(): void
3535
{
3636
$this->config = $this->getMockBuilder(BlacklistPatternsConfigInterface::class)
3737
->disableOriginalConstructor()
38-
->getMock();
38+
->getMockForAbstractClass();
3939
$this->config->expects($this->at(0))->method('get')->willReturn([
4040
'tmp' => '/pub\/media\/tmp/',
4141
'captcha' => '/pub\/media\/captcha/'

app/code/Magento/MediaGalleryCatalog/Test/Unit/Plugin/Product/Gallery/RemoveAssetAfterRemoveImageTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ protected function setUp(): void
5656
$this->processorSubjectMock = $this->createMock(ProcessorSubject::class);
5757
$this->productMock = $this->createMock(Product::class);
5858

59-
$this->deleteMediaAssetByPathMock = $this->createMock(DeleteAssetsByPathsInterface::class);
60-
$this->loggerMock = $this->createMock(LoggerInterface::class);
59+
$this->deleteMediaAssetByPathMock = $this->getMockForAbstractClass(DeleteAssetsByPathsInterface::class);
60+
$this->loggerMock = $this->getMockForAbstractClass(LoggerInterface::class);
6161

6262
$this->plugin = (new ObjectManagerHelper($this))->getObject(
6363
RemoveAssetAfterRemoveImage::class,

dev/tests/integration/testsuite/Magento/Customer/Controller/Account/EmailTemplateTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class EmailTemplateTest extends AbstractController
4444
*/
4545
private $formKey;
4646

47-
protected function setUp()
47+
protected function setUp(): void
4848
{
4949
parent::setUp();
5050
$this->transportBuilderMock = $this->_objectManager->get(TransportBuilderMock::class);

dev/tests/integration/testsuite/Magento/Customer/Controller/Adminhtml/Customer/InvalidateTokenTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class InvalidateTokenTest extends AbstractBackendController
2626
/**
2727
* @inheritdoc
2828
*/
29-
protected function setUp()
29+
protected function setUp(): void
3030
{
3131
parent::setUp();
3232

dev/tests/integration/testsuite/Magento/Customer/Model/Config/ShareTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class ShareTest extends TestCase
3030
/**
3131
* @inheritdoc
3232
*/
33-
protected function setUp()
33+
protected function setUp(): void
3434
{
3535
parent::setUp();
3636

dev/tests/integration/testsuite/Magento/Downloadable/Block/Account/LinkTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class LinkTest extends TestCase
3030
/**
3131
* @inheritdoc
3232
*/
33-
protected function setUp()
33+
protected function setUp(): void
3434
{
3535
parent::setUp();
3636

dev/tests/integration/testsuite/Magento/Downloadable/Block/Customer/Products/ListProductsTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class ListProductsTest extends TestCase
5555
/**
5656
* @inheritdoc
5757
*/
58-
protected function setUp()
58+
protected function setUp(): void
5959
{
6060
parent::setUp();
6161

@@ -69,7 +69,7 @@ protected function setUp()
6969
/**
7070
* @inheritdoc
7171
*/
72-
protected function tearDown()
72+
protected function tearDown(): void
7373
{
7474
$this->customerSession->logout();
7575

dev/tests/integration/testsuite/Magento/Framework/View/Element/UiComponent/ContextTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class ContextTest extends TestCase
4040
/**
4141
* @inheritDoc
4242
*/
43-
protected function setUp()
43+
protected function setUp(): void
4444
{
4545
$this->request = Bootstrap::getObjectManager()->get(RequestInterface::class);
4646
$this->contextFactory = Bootstrap::getObjectManager()->get(ContextFactory::class);

dev/tests/integration/testsuite/Magento/Framework/View/Element/UiComponentFactoryTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class UiComponentFactoryTest extends TestCase
2929
/**
3030
* @inheritDoc
3131
*/
32-
protected function setUp()
32+
protected function setUp(): void
3333
{
3434
$this->factory = Bootstrap::getObjectManager()->get(UiComponentFactoryFactory::class);
3535
}

0 commit comments

Comments
 (0)