public function testCreateByDeliveryDays()
 {
     $this->assertTrue(DeliveryMethodType::createByDeliveryDays(1)->isOneDay());
     $this->assertTrue(DeliveryMethodType::createByDeliveryDays(2)->isTwoDay());
     $this->assertTrue(DeliveryMethodType::createByDeliveryDays(3)->isStandard());
 }
示例#2
0
 public function getDeliveryMethodType()
 {
     return DeliveryMethodType::twoDay();
 }
 protected function preBuild()
 {
     $this->entityDTO->isStandard = $this->entity->isStandard();
     $this->entityDTO->isOneDay = $this->entity->isOneDay();
     $this->entityDTO->isTwoDay = $this->entity->isTwoDay();
 }
示例#4
0
 private function setupDeliveryMethod()
 {
     $this->setDeliveryMethod(DeliveryMethodType::createByDeliveryDays($this->deliveryDays));
 }