/** * @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)); }
/** * @When /^I unset theme on (that channel)$/ */ public function iUnsetThemeOnChannel(ChannelInterface $channel) { $this->channelUpdatePage->open(['id' => $channel->getId()]); $this->channelUpdatePage->unsetTheme(); $this->channelUpdatePage->saveChanges(); }
/** * @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.'); }
/** * @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)); }