Sylius\Behat\Page\Admin\Order\ShowPageInterface::getOrderCurrency PHP 메소드

getOrderCurrency() 공개 메소드

public getOrderCurrency ( ) : string
리턴 string
    public function getOrderCurrency();

Usage Example

예제 #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');
     });
 }