Example #1
0
 function it_assigns_customer_ip_from_request_to_order(OrderInterface $order, Request $request)
 {
     $request->getClientIp()->willReturn('172.16.254.1');
     $order->setCustomerIp('172.16.254.1')->shouldBeCalled();
     $this->assign($order, $request);
 }
Example #2
0
 /**
  * {@inheritdoc}
  */
 public function assign(OrderInterface $order, Request $request)
 {
     $order->setCustomerIp($request->getClientIp());
 }