Sylius\Behat\Page\Admin\Order\ShowPageInterface::getIpAddressAssigned PHP Method

getIpAddressAssigned() public method

public getIpAddressAssigned ( ) : string
return string
    public function getIpAddressAssigned();

Usage Example

 /**
  * @Then /^(the administrator) should know about IP address of (this order made by "[^"]+")$/
  */
 public function theAdministratorShouldKnowAboutIPAddressOfThisOrderMadeBy(AdminUserInterface $user, OrderInterface $order)
 {
     $this->sharedSecurityService->performActionAsAdminUser($user, function () use($order) {
         $this->showPage->open(['id' => $order->getId()]);
         Assert::notSame($this->showPage->getIpAddressAssigned(), '', 'There should be IP address assigned to order, but there is not.');
     });
 }