Sylius\Behat\Page\Admin\Taxon\CreatePageInterface::getLeaves PHP 메소드

getLeaves() 공개 메소드

public getLeaves ( Sylius\Component\Core\Model\TaxonInterface $parentTaxon = null ) : Behat\Mink\Element\NodeElement[]
$parentTaxon Sylius\Component\Core\Model\TaxonInterface
리턴 Behat\Mink\Element\NodeElement[]
    public function getLeaves(TaxonInterface $parentTaxon = null);

Usage Example

예제 #1
0
 /**
  * @Then they should have order like :firstTaxonName, :secondTaxonName, :thirdTaxonName and :fourthTaxonName
  */
 public function theyShouldHaveOrderLikeAnd(...$taxonsNames)
 {
     $leaves = $this->createPage->getLeaves();
     foreach ($leaves as $key => $leaf) {
         Assert::contains($taxonsNames[$key], $leaf->getText());
     }
 }