public function setUp()
 {
     parent::setUp();
     mt_srand(0);
     $this->repository = $this->mockRepository->getOrderRepository();
     $this->hashSegmentGenerator = new HashSegmentReferenceNumberGenerator($this->repository);
 }
コード例 #2
0
ファイル: RandTest.php プロジェクト: inklabs/kommerce-core
 public function setUp()
 {
     parent::setUp();
     $this->product1 = $this->dummyData->getProduct(1);
     $this->product2 = $this->dummyData->getProduct(2);
     $this->product3 = $this->dummyData->getProduct(3);
     $this->entityManager->persist($this->product1);
     $this->entityManager->persist($this->product2);
     $this->entityManager->persist($this->product3);
     $this->entityManager->flush();
 }
コード例 #3
0
 public function setUp()
 {
     parent::setUp();
     $this->queryBuilder = new QueryBuilder($this->entityManager);
 }
コード例 #4
0
 public function setUp()
 {
     parent::setUp();
     $this->orderItemTextOptionValueRepository = $this->getRepositoryFactory()->getOrderItemTextOptionValueRepository();
 }
コード例 #5
0
 public function setUp()
 {
     parent::setUp();
     $this->attachmentRepository = $this->getRepositoryFactory()->getAttachmentRepository();
 }
コード例 #6
0
 public function setUp()
 {
     parent::setUp();
     $this->inventoryTransactionRepository = $this->getRepositoryFactory()->getInventoryTransactionRepository();
 }
コード例 #7
0
 public function setUp()
 {
     parent::setUp();
     $this->attributeValueRepository = $this->getRepositoryFactory()->getAttributeValueRepository();
 }
コード例 #8
0
 public function setUp()
 {
     parent::setUp();
     $this->productRepository = $this->getRepositoryFactory()->getProductRepository();
 }
コード例 #9
0
 public function setUp()
 {
     parent::setUp();
     $this->catalogPromotionRepository = $this->getRepositoryFactory()->getCatalogPromotionRepository();
 }
コード例 #10
0
 public function setUp()
 {
     parent::setUp();
     $this->imageRepository = $this->getRepositoryFactory()->getImageRepository();
 }
コード例 #11
0
 public function setUp()
 {
     parent::setUp();
     $this->cartPriceRuleRepository = $this->getRepositoryFactory()->getCartPriceRuleRepository();
 }
コード例 #12
0
 public function setUp()
 {
     parent::setUp();
     $this->taxRateRepository = $this->getRepositoryFactory()->getTaxRateRepository();
     $this->setupTaxRates();
 }
コード例 #13
0
 public function setUp()
 {
     parent::setUp();
     $this->orderItemOptionProductRepository = $this->getRepositoryFactory()->getOrderItemOptionProductRepository();
 }
コード例 #14
0
 public function setUp()
 {
     parent::setUp();
     $this->mockService = new MockService($this->dummyData);
 }
コード例 #15
0
 public function setUp()
 {
     parent::setUp();
     $this->setupEntityManager();
 }
コード例 #16
0
 public function setUp()
 {
     parent::setUp();
     $this->userRepository = $this->getRepositoryFactory()->getUserRepository();
 }
コード例 #17
0
 public function setUp()
 {
     parent::setUp();
     $this->textOptionRepository = $this->getRepositoryFactory()->getTextOptionRepository();
 }
コード例 #18
0
 public function setUp()
 {
     parent::setUp();
     $this->paymentRepository = $this->getRepositoryFactory()->getPaymentRepository();
 }
コード例 #19
0
 public function setUp()
 {
     parent::setUp();
     $this->couponRepository = $this->getRepositoryFactory()->getCouponRepository();
 }
コード例 #20
0
ファイル: PricingTest.php プロジェクト: inklabs/kommerce-core
 public function setUp()
 {
     parent::setUp();
     $this->pricing = $this->dummyData->getPricing();
 }