Пример #1
0
 /**
  * Update the inventory units.
  *
  * @param GenericEvent $event
  */
 public function processInventoryUnits(GenericEvent $event)
 {
     $this->inventoryHandler->processInventoryUnits($this->getItem($event));
 }
Пример #2
0
 /**
  * @param GenericEvent $event
  */
 public function holdInventoryUnits(GenericEvent $event)
 {
     $this->inventoryHandler->holdInventory($this->getOrder($event));
 }
Пример #3
0
 function it_creates_inventory_units(InventoryHandlerInterface $inventoryHandler, GenericEvent $event, OrderItemInterface $item)
 {
     $event->getSubject()->willReturn($item);
     $inventoryHandler->processInventoryUnits($item)->shouldBeCalled();
     $this->processInventoryUnits($event);
 }