public function setUp() { parent::setUp(); $this->inventoryLocationRepository = $this->getRepositoryFactory()->getInventoryLocationRepository(); $this->inventoryTransactionRepository = $this->getRepositoryFactory()->getInventoryTransactionRepository(); $this->warehouse = $this->getInitializeWarehouse(); $this->inventoryService = new InventoryService($this->inventoryLocationRepository, $this->inventoryTransactionRepository, $this->getInitializedHoldInventoryLocation($this->warehouse)->getId()); }
public function setUp() { parent::setUp(); $this->productRepository = $this->mockRepository->getProductRepository(); $this->tagRepository = $this->mockRepository->getTagRepository(); $this->imageRepository = $this->mockRepository->getImageRepository(); $this->productService = new ProductService($this->productRepository, $this->tagRepository, $this->imageRepository); }
public function setUp() { parent::setUp(); $this->tagRepository = $this->mockRepository->getTagRepository(); $this->imageRepository = $this->mockRepository->getImageRepository(); $this->optionRepository = $this->mockRepository->getOptionRepository(); $this->textOptionRepository = $this->mockRepository->getTextOptionRepository(); $this->tagService = new TagService($this->tagRepository, $this->imageRepository, $this->optionRepository, $this->textOptionRepository); }
public function setUp() { parent::setUp(); $this->userRepository = $this->mockRepository->getUserRepository(); $this->userLoginRepository = $this->mockRepository->getUserLoginRepository(); $this->userTokenRepository = $this->mockRepository->getUserTokenRepository(); $this->fakeEventDispatcher = new FakeEventDispatcher(); $this->userService = new UserService($this->userRepository, $this->userLoginRepository, $this->userTokenRepository, $this->fakeEventDispatcher); }
public function setUp() { parent::setUp(); $this->fileManager = $this->mockService->getFileManager(); $this->imageRepository = $this->mockRepository->getImageRepository(); $this->productRepository = $this->mockRepository->getProductRepository(); $this->tagRepository = $this->mockRepository->getTagRepository(); $this->imageService = new ImageService($this->fileManager, $this->imageRepository, $this->productRepository, $this->tagRepository); }
public function setUp() { parent::setUp(); $this->attachmentRepository = $this->mockRepository->getAttachmentRepository(); $this->fileManager = $this->mockService->getFileManager(); $this->orderService = $this->mockService->getOrderService(); $this->productService = $this->mockService->getProductService(); $this->userService = $this->mockService->getUserService(); $this->attachmentService = new AttachmentService($this->attachmentRepository, $this->fileManager, $this->orderService, $this->productService, $this->userService); }
public function setUp() { parent::setUp(); $this->fakeEventDispatcher = new FakeEventDispatcher(); $this->orderRepository = $this->getRepositoryFactory()->getOrderRepository(); $this->orderItemRepository = $this->getRepositoryFactory()->getOrderItemRepository(); $this->productRepository = $this->getRepositoryFactory()->getProductRepository(); $this->shipmentGateway = new FakeShipmentGateway(new OrderAddressDTO()); $this->inventoryLocationRepository = $this->getRepositoryFactory()->getInventoryLocationRepository(); $this->inventoryTransactionRepository = $this->getRepositoryFactory()->getInventoryTransactionRepository(); $warehouse = $this->getInitializeWarehouse(); $this->inventoryService = new InventoryService($this->inventoryLocationRepository, $this->inventoryTransactionRepository, $this->getInitializedHoldInventoryLocation($warehouse)->getId()); $this->paymentGateway = new FakePaymentGateway(); $this->orderService = new OrderService($this->fakeEventDispatcher, $this->inventoryService, $this->orderRepository, $this->orderItemRepository, $this->paymentGateway, $this->productRepository, $this->shipmentGateway); }
public function setUp() { parent::setUp(); $this->cartCalculator = new CartCalculator(new Pricing()); $this->cartRepository = $this->mockRepository->getCartRepository(); $this->couponRepository = $this->mockRepository->getCouponRepository(); $this->fakeEventDispatcher = new FakeEventDispatcher(); $this->productRepository = $this->mockRepository->getProductRepository(); $this->optionProductRepository = $this->mockRepository->getOptionProductRepository(); $this->optionValueRepository = $this->mockRepository->getOptionValueRepository(); $this->orderRepository = $this->mockRepository->getOrderRepository(); $this->fakeShipmentGateway = new FakeShipmentGateway(new OrderAddressDTO()); $this->taxRateRepository = $this->mockRepository->getTaxRateRepository(); $this->textOptionRepository = $this->mockRepository->getTextOptionRepository(); $this->userRepository = $this->mockRepository->getUserRepository(); $this->inventoryLocationRepository = $this->mockRepository->getInventoryLocationRepository(); $this->inventoryTransactionRepository = $this->mockRepository->getInventoryTransactionRepository(); $customerHoldInventoryLocation = $this->dummyData->getCustomerHoldInventoryLocation(); $this->inventoryService = new InventoryService($this->inventoryLocationRepository, $this->inventoryTransactionRepository, $customerHoldInventoryLocation->getId()); $this->setupCartService(); }
public function setUp() { parent::setUp(); $this->taxRateRepository = $this->mockRepository->getTaxRateRepository(); $this->taxRateService = new TaxRateService($this->taxRateRepository); }
public function setUp() { parent::setUp(); $this->couponRepository = $this->mockRepository->getCouponRepository(); $this->couponService = new CouponService($this->couponRepository); }
public function setUp() { parent::setUp(); $this->attributeValueRepository = $this->mockRepository->getAttributeValueRepository(); $this->attributeValueService = new AttributeValueService($this->attributeValueRepository); }
public function setUp() { parent::setUp(); $this->setupEntityManager(); }
public function setUp() { parent::setUp(); $this->cartPriceRuleRepository = $this->mockRepository->getCartPriceRuleRepository(); $this->cartPriceRuleService = new CartPriceRuleService($this->cartPriceRuleRepository); }
public function setUp() { parent::setUp(); $this->catalogPromotionRepository = $this->mockRepository->getCatalogPromotionRepository(); $this->catalogPromotionService = new CatalogPromotionService($this->catalogPromotionRepository); }