1414use Magento \Checkout \Test \Fixture \SetGuestEmail as SetGuestEmailFixture ;
1515use Magento \Checkout \Test \Fixture \SetPaymentMethod as SetPaymentMethodFixture ;
1616use Magento \Checkout \Test \Fixture \SetShippingAddress as SetShippingAddressFixture ;
17- use Magento \Framework \Api \SearchCriteriaBuilder ;
1817use Magento \Framework \App \ResourceConnection ;
1918use Magento \Framework \DB \Adapter \AdapterInterface ;
2019use Magento \Framework \Exception \LocalizedException ;
2120use Magento \Quote \Test \Fixture \AddProductToCart as AddProductToCartFixture ;
2221use Magento \Quote \Test \Fixture \GuestCart as GuestCartFixture ;
23- use Magento \Sales \Api \CreditmemoRepositoryInterface ;
24- use Magento \Sales \Api \InvoiceRepositoryInterface ;
25- use Magento \Sales \Api \OrderRepositoryInterface ;
26- use Magento \Sales \Api \ShipmentRepositoryInterface ;
27- use Magento \Sales \Model \GridAsyncInsert ;
2822use Magento \Sales \Test \Fixture \Creditmemo as CreditmemoFixture ;
2923use Magento \Sales \Test \Fixture \Invoice as InvoiceFixture ;
3024use Magento \Sales \Test \Fixture \Shipment as ShipmentFixture ;
@@ -62,31 +56,6 @@ class GridAsyncInsertCronTest extends TestCase
6256 */
6357 private AdapterInterface $ connection ;
6458
65- /**
66- * @var OrderRepositoryInterface
67- */
68- private OrderRepositoryInterface $ orderRepository ;
69-
70- /**
71- * @var InvoiceRepositoryInterface
72- */
73- private InvoiceRepositoryInterface $ invoiceRepository ;
74-
75- /**
76- * @var ShipmentRepositoryInterface
77- */
78- private ShipmentRepositoryInterface $ shipmentRepository ;
79-
80- /**
81- * @var CreditmemoRepositoryInterface
82- */
83- private CreditmemoRepositoryInterface $ creditmemoRepository ;
84-
85- /**
86- * @var SearchCriteriaBuilder
87- */
88- private SearchCriteriaBuilder $ searchCriteriaBuilder ;
89-
9059 /**
9160 * @var DataFixtureStorage
9261 */
@@ -103,11 +72,6 @@ protected function setUp(): void
10372 $ this ->objectManager = Bootstrap::getObjectManager ();
10473 $ this ->resourceConnection = $ this ->objectManager ->get (ResourceConnection::class);
10574 $ this ->connection = $ this ->resourceConnection ->getConnection ();
106- $ this ->orderRepository = $ this ->objectManager ->get (OrderRepositoryInterface::class);
107- $ this ->invoiceRepository = $ this ->objectManager ->get (InvoiceRepositoryInterface::class);
108- $ this ->shipmentRepository = $ this ->objectManager ->get (ShipmentRepositoryInterface::class);
109- $ this ->creditmemoRepository = $ this ->objectManager ->get (CreditmemoRepositoryInterface::class);
110- $ this ->searchCriteriaBuilder = $ this ->objectManager ->get (SearchCriteriaBuilder::class);
11175 $ this ->fixtures = $ this ->objectManager ->get (DataFixtureStorageManager::class)->getStorage ();
11276 }
11377
0 commit comments