コード例 #1
0
ファイル: LocaleContext.php プロジェクト: sylius/sylius
 /**
  * @Then I should not be able to shop without default locale
  */
 public function iShouldNotBeAbleToShop()
 {
     try {
         $this->homePage->tryToOpen();
         throw new \Exception('The page should not be able to open.');
     } catch (LocaleNotFoundException $e) {
     }
 }
コード例 #2
0
ファイル: CurrencyContext.php プロジェクト: origammi/Sylius
 /**
  * @Then I should not be able to shop without default currency
  */
 public function iShouldNotBeAbleToShop()
 {
     $this->homePage->tryToOpen();
     Assert::false($this->homePage->isOpen(), 'Homepage should not be opened!');
 }