コード例 #1
0
ファイル: CurrencyContext.php プロジェクト: origammi/Sylius
 /**
  * @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())));
     }
 }
コード例 #2
0
 /**
  * @Then I should not be logged in as :fullName
  */
 public function iShouldNotBeLoggedInAs($fullName)
 {
     $this->homePage->open();
     Assert::false($this->homePage->hasLogoutButton(), 'I should not be logged in.');
     Assert::false(strpos($this->homePage->getFullName(), $fullName), sprintf('I should not be logged in as %s.', $fullName));
 }
コード例 #3
0
ファイル: ChannelContext.php プロジェクト: Mozan/Sylius
 /**
  * @When /^I visit (this channel)'s homepage$/
  */
 public function iVisitChannelHomepage(ChannelInterface $channel)
 {
     $this->channelContextSetter->setChannel($channel);
     $this->homePage->open();
 }
コード例 #4
0
ファイル: HomepageContext.php プロジェクト: sylius/sylius
 /**
  * @When I check latest products
  */
 public function iCheckLatestProducts()
 {
     $this->homePage->open();
 }