Author: Łukasz Chruściel (lukasz.chrusciel@lakion.com)
Inheritance: extends Sylius\Behat\Page\PageInterface
コード例 #1
0
 /**
  * @Then the tax calculation strategy for the :channel channel should be :taxCalculationStrategy
  */
 public function theTaxCalculationStrategyForTheChannelShouldBe(ChannelInterface $channel, $taxCalculationStrategy)
 {
     $this->updatePage->open(['id' => $channel->getId()]);
     Assert::true($this->updatePage->isTaxCalculationStrategyChosen($taxCalculationStrategy), sprintf('Tax calculation strategy %s should be selected, but it is not', $taxCalculationStrategy));
 }
コード例 #2
0
ファイル: ThemeContext.php プロジェクト: ReissClothing/Sylius
 /**
  * @When /^I unset theme on (that channel)$/
  */
 public function iUnsetThemeOnChannel(ChannelInterface $channel)
 {
     $this->channelUpdatePage->open(['id' => $channel->getId()]);
     $this->channelUpdatePage->unsetTheme();
     $this->channelUpdatePage->saveChanges();
 }
コード例 #3
0
 /**
  * @Then the base currency field should be disabled
  */
 public function theBaseCurrencyFieldShouldBeDisabled()
 {
     Assert::true($this->updatePage->isBaseCurrencyDisabled(), 'Base currency should be immutable, but it is not.');
 }
コード例 #4
0
 /**
  * @Then the :paymentMethodName payment method should be available for the :channel channel
  */
 public function thePaymentMethodShouldBeAvailableForTheChannel($paymentMethodName, ChannelInterface $channel)
 {
     $this->updatePage->open(['id' => $channel->getId()]);
     Assert::true($this->updatePage->isPaymentMethodChosen($paymentMethodName), sprintf('Payment method %s should be selected but it is not', $paymentMethodName));
 }