Sylius\Behat\Page\Admin\Channel\UpdatePageInterface::isTaxCalculationStrategyChosen PHP Method

isTaxCalculationStrategyChosen() public method

public isTaxCalculationStrategyChosen ( string $taxCalculationStrategy ) : boolean
$taxCalculationStrategy string
return boolean
    public function isTaxCalculationStrategyChosen($taxCalculationStrategy);

Usage Example

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