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()); }
public function set_address(OrderEvent $event) { if ($event->getOrder()->getDeliveryModuleId() === LocalPickup::getModCode()) { $event->setDeliveryAddress(null); } }