Sylius\Behat\Page\Shop\HomePageInterface::getAvailableCurrencies PHP 메소드

getAvailableCurrencies() 공개 메소드

public getAvailableCurrencies ( ) : array
리턴 array
    public function getAvailableCurrencies();

Usage Example

예제 #1
0
 /**
  * @Then I should not be able to shop using the :currencyCode currency
  */
 public function iShouldNotBeAbleToShopUsingTheCurrency($currencyCode)
 {
     $this->homePage->open();
     if (in_array($currencyCode, $this->homePage->getAvailableCurrencies(), true)) {
         throw new \InvalidArgumentException(sprintf('Expected "%s" not to be in "%s"', $currencyCode, implode('", "', $this->homePage->getAvailableCurrencies())));
     }
 }