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

getOrderCurrency() public method

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

Usage Example

Esempio n. 1
0
 /**
  * @Then /^(the administrator) should see that (order placed by "[^"]+") has "([^"]+)" currency$/
  */
 public function theAdministratorShouldSeeThatThisOrderHasBeenPlacedIn(AdminUserInterface $user, OrderInterface $order, $currency)
 {
     $this->sharedSecurityService->performActionAsAdminUser($user, function () use($order, $currency) {
         $this->showPage->open(['id' => $order->getId()]);
         Assert::same($this->showPage->getOrderCurrency(), $currency, 'The order has been placed in %s, but it was expected to be placed in %s');
     });
 }