Skip to content

Commit 2130319

Browse files
committed
AC-15102: [CE] PHPUnit 12: Upgrade Customer Management related test cases
1 parent a5ba719 commit 2130319

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

app/code/Magento/Customer/Test/Unit/Helper/AddressTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@
2727
use PHPUnit\Framework\TestCase;
2828
use Magento\Framework\TestFramework\Unit\Helper\MockCreationTrait;
2929

30+
/**
31+
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
32+
*/
3033
class AddressTest extends TestCase
3134
{
3235
use MockCreationTrait;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ protected function setUp(): void
7575
GroupManagementInterface::class
7676
);
7777
$this->dataObjectHelper = $this->createMock(DataObjectHelper::class);
78-
$this->request = $this->createMock(RequestInterface::class, [], '', false);
78+
$this->request = $this->createMock(RequestInterface::class);
7979
$this->customerForm = $this->createMock(Form::class);
8080
$this->customerData = $this->createMock(
8181
CustomerInterface::class

app/code/Magento/Customer/Test/Unit/Model/ResourceModel/GroupRepositoryTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ public function testSaveWithException()
276276
{
277277
$this->expectException(InvalidTransitionException::class);
278278

279-
$taxClass = $this->createMock(TaxClassInterface::class, [], '', false);
279+
$taxClass = $this->createMock(TaxClassInterface::class);
280280

281281
$this->groupFactory->expects($this->once())
282282
->method('create')

0 commit comments

Comments
 (0)