1111use Magento \Checkout \Api \Data \ShippingInformationInterface ;
1212use Magento \Checkout \Api \ShippingInformationManagementInterface ;
1313use 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 ;
1814use Magento \Quote \Model \QuoteIdMaskFactory ;
1915use Magento \Quote \Test \Unit \Helper \QuoteIdMaskLoadByMaskedIdTestHelper ;
2016use 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