public function handle(SetOrderStatusCommand $command)
 {
     $this->orderService->setOrderStatus($command->getOrderId(), OrderStatusType::createById($command->getOrderStatusTypeId()));
 }
예제 #2
0
 public function testCreateByIdThrowsExceptionWhenInvalid()
 {
     $this->setExpectedException(InvalidArgumentException::class);
     OrderStatusType::createById(999);
 }