PHP Class Elcodi\Store\ProductBundle\Behat\Context

Inheritance: extends Elcodi\Bridge\BehatBridgeBundle\Abstracts\AbstractElcodiContext
Show file Open project: elcodi/bamboo

Public Methods

Method Description
iAmOnThePackPage ( $packId )
iAmOnTheProductPage ( $productId )
iShouldSeeCategoryMenuItem ( Behat\Gherkin\Node\TableNode $table )
iShouldSeeExactlyXProducts ( $numberOfProducts )
iShouldSeeLessThanXProducts ( $numberOfProducts )
iShouldSeeMoreThanXProducts ( $numberOfProducts )
iShouldSeePurchasableName ( $id )

Protected Methods

Method Description
getCategory ( integer $categoryId ) : Elcodi\Component\Product\Entity\Interfaces\CategoryInterface Get category by id
getItemElements ( ) : Behat\Mink\Element\NodeElement[]
getPurchasable ( integer $purchasableId ) : Elcodi\Component\Product\Entity\Interfaces\PurchasableInterface Get purchasable by id

Method Details

getCategory() protected method

Get category by id
protected getCategory ( integer $categoryId ) : Elcodi\Component\Product\Entity\Interfaces\CategoryInterface
$categoryId integer Category Id
return Elcodi\Component\Product\Entity\Interfaces\CategoryInterface Category

getItemElements() protected method

protected getItemElements ( ) : Behat\Mink\Element\NodeElement[]
return Behat\Mink\Element\NodeElement[]

getPurchasable() protected method

Get purchasable by id
protected getPurchasable ( integer $purchasableId ) : Elcodi\Component\Product\Entity\Interfaces\PurchasableInterface
$purchasableId integer Purchasable Id
return Elcodi\Component\Product\Entity\Interfaces\PurchasableInterface Purchasable

iAmOnThePackPage() public method

public iAmOnThePackPage ( $packId )

iAmOnTheProductPage() public method

public iAmOnTheProductPage ( $productId )

iShouldSeeCategoryMenuItem() public method

public iShouldSeeCategoryMenuItem ( Behat\Gherkin\Node\TableNode $table )
$table Behat\Gherkin\Node\TableNode

iShouldSeeExactlyXProducts() public method

public iShouldSeeExactlyXProducts ( $numberOfProducts )

iShouldSeeLessThanXProducts() public method

public iShouldSeeLessThanXProducts ( $numberOfProducts )

iShouldSeeMoreThanXProducts() public method

public iShouldSeeMoreThanXProducts ( $numberOfProducts )

iShouldSeePurchasableName() public method

public iShouldSeePurchasableName ( $id )