Sylius\Behat\Context\Ui\Shop\ProductContext::iViewSortedProductsFromTaxon PHP Method

iViewSortedProductsFromTaxon() public method

public iViewSortedProductsFromTaxon ( $sortDirection, Sylius\Component\Core\Model\TaxonInterface $taxon )
$taxon Sylius\Component\Core\Model\TaxonInterface
    public function iViewSortedProductsFromTaxon($sortDirection, TaxonInterface $taxon)
    {
        $sorting = ['createdAt' => 'oldest' === $sortDirection ? 'asc' : 'desc'];
        $this->indexPage->open(['slug' => $taxon->getSlug(), 'sorting' => $sorting]);
    }