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

getAvailableLocales() 공개 메소드

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

Usage Example

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