Skip to content

Commit 3006e7d

Browse files
committed
AC-15104::[CE] PHPUnit 12: Upgrade Checkout & Cart Management related test cases
1 parent 44a601b commit 3006e7d

File tree

1 file changed

+1
-19
lines changed

1 file changed

+1
-19
lines changed

app/code/Magento/Checkout/Test/Unit/Model/GuestShippingInformationManagementTest.php

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,6 @@
1111
use Magento\Checkout\Api\Data\ShippingInformationInterface;
1212
use Magento\Checkout\Api\ShippingInformationManagementInterface;
1313
use Magento\Checkout\Model\GuestShippingInformationManagement;
14-
use Magento\Customer\Model\AddressFactory;
15-
use Magento\Framework\Exception\InputException;
16-
use Magento\Framework\Validator\Factory as ValidatorFactory;
17-
use Magento\Quote\Model\QuoteIdMask;
1814
use Magento\Quote\Model\QuoteIdMaskFactory;
1915
use Magento\Quote\Test\Unit\Helper\QuoteIdMaskLoadByMaskedIdTestHelper;
2016
use PHPUnit\Framework\MockObject\MockObject;
@@ -35,16 +31,6 @@ class GuestShippingInformationManagementTest extends TestCase
3531
*/
3632
protected $quoteIdMaskFactoryMock;
3733

38-
/**
39-
* @var ValidatorFactory|MockObject
40-
*/
41-
protected $validatorFactoryMock;
42-
43-
/**
44-
* @var AddressFactory|MockObject
45-
*/
46-
protected $addressFactoryMock;
47-
4834
/**
4935
* @var GuestShippingInformationManagement
5036
*/
@@ -56,13 +42,9 @@ protected function setUp(): void
5642
$this->shippingInformationManagementMock = $this->createMock(
5743
ShippingInformationManagementInterface::class
5844
);
59-
$validatorFactory = $this->createMock(ValidatorFactory::class);
60-
$addressFactory = $this->createMock(AddressFactory::class);
6145
$this->model = new GuestShippingInformationManagement(
6246
$this->quoteIdMaskFactoryMock,
63-
$this->shippingInformationManagementMock,
64-
$validatorFactory,
65-
$addressFactory
47+
$this->shippingInformationManagementMock
6648
);
6749
}
6850

0 commit comments

Comments
 (0)