コード例 #1
0
ファイル: OrderTest.php プロジェクト: alex63530/thelia
 public function testSetDeliveryAddress()
 {
     //$validAddressId = AddressQuery::create()->findOneByCustomerId($this->customer->getId());
     $this->orderEvent->setDeliveryAddress(321);
     $this->orderAction->setDeliveryAddress($this->orderEvent);
     $this->assertEquals(321, $this->orderEvent->getOrder()->getChoosenDeliveryAddress());
 }
コード例 #2
0
 public function set_address(OrderEvent $event)
 {
     if ($event->getOrder()->getDeliveryModuleId() === LocalPickup::getModCode()) {
         $event->setDeliveryAddress(null);
     }
 }