Sylius\Behat\Page\Shop\HomePageInterface::getAvailableLocales PHP Method

getAvailableLocales() public method

public getAvailableLocales ( ) : array
return 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())));
     }
 }