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