/** * @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) { } }
/** * @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!'); }