コード例 #1
0
ファイル: ProductContext.php プロジェクト: loic425/Sylius
 /**
  * @When /^I view (oldest|newest) products from (taxon "([^"]+)")$/
  */
 public function iViewSortedProductsFromTaxon($sortDirection, TaxonInterface $taxon)
 {
     $sorting = ['createdAt' => 'oldest' === $sortDirection ? 'asc' : 'desc'];
     $this->taxonShowPage->open(['slug' => $taxon->getSlug(), 'sorting' => $sorting]);
 }
コード例 #2
0
ファイル: ProductContext.php プロジェクト: gabiudrescu/Sylius
 /**
  * @When /^I browse products from (taxon "([^"]+)")$/
  */
 public function iCheckListOfProductsForTaxon(TaxonInterface $taxon)
 {
     $this->taxonShowPage->open(['permalink' => $taxon->getPermalink()]);
 }