PHP Class Sylius\Behat\Page\Admin\Product\CreateSimpleProductPage

Author: Łukasz Chruściel ([email protected])
Inheritance: extends Sylius\Behat\Page\Admin\Crud\CreatePage, implements Sylius\Behat\Page\Admin\Product\CreateSimpleProductPageInterface, use trait Sylius\Behat\Behaviour\SpecifiesItsCode
Show file Open project: sylius/sylius

Public Methods

Method Description
activateLanguageTab ( $locale )
addAttribute ( $attribute, $value )
associateProducts ( Sylius\Component\Product\Model\ProductAssociationTypeInterface $productAssociationType, array $productsNames )
attachImage ( $path, $code = null )
checkChannel ( $channelName )
choosePricingCalculator ( $name )
getRouteName ( )
nameItIn ( $name, $localeCode )
removeAssociatedProduct ( $productName, Sylius\Component\Product\Model\ProductAssociationTypeInterface $productAssociationType )
removeAttribute ( $attribute )
selectShippingCategory ( $shippingCategoryName )
specifyPrice ( $channelName, $price )
specifyPriceForChannelAndCurrency ( $price, Sylius\Component\Core\Model\ChannelInterface $channel, Sylius\Component\Currency\Model\CurrencyInterface $currency )
specifySlugIn ( $slug, $locale )

Protected Methods

Method Description
getDefinedElements ( )
getElement ( $name, array $parameters = [] )

Private Methods

Method Description
clickTab ( string $tabName )
clickTabIfItsNotActive ( string $tabName )
getLastImageElement ( ) : Behat\Mink\Element\NodeElement
selectElementFromAttributesDropdown ( integer $id )
waitForFormElement ( integer $timeout = 5 )
waitForSlugGenerationIfNecessary ( string $locale )

Method Details

activateLanguageTab() public method

public activateLanguageTab ( $locale )

addAttribute() public method

public addAttribute ( $attribute, $value )

associateProducts() public method

public associateProducts ( Sylius\Component\Product\Model\ProductAssociationTypeInterface $productAssociationType, array $productsNames )
$productAssociationType Sylius\Component\Product\Model\ProductAssociationTypeInterface
$productsNames array

attachImage() public method

public attachImage ( $path, $code = null )

checkChannel() public method

public checkChannel ( $channelName )

choosePricingCalculator() public method

public choosePricingCalculator ( $name )

getDefinedElements() protected method

protected getDefinedElements ( )

getElement() protected method

protected getElement ( $name, array $parameters = [] )
$parameters array

getRouteName() public method

public getRouteName ( )

nameItIn() public method

public nameItIn ( $name, $localeCode )

removeAssociatedProduct() public method

public removeAssociatedProduct ( $productName, Sylius\Component\Product\Model\ProductAssociationTypeInterface $productAssociationType )
$productAssociationType Sylius\Component\Product\Model\ProductAssociationTypeInterface

removeAttribute() public method

public removeAttribute ( $attribute )

selectShippingCategory() public method

public selectShippingCategory ( $shippingCategoryName )

specifyPrice() public method

public specifyPrice ( $channelName, $price )

specifyPriceForChannelAndCurrency() public method

public specifyPriceForChannelAndCurrency ( $price, Sylius\Component\Core\Model\ChannelInterface $channel, Sylius\Component\Currency\Model\CurrencyInterface $currency )
$channel Sylius\Component\Core\Model\ChannelInterface
$currency Sylius\Component\Currency\Model\CurrencyInterface

specifySlugIn() public method

public specifySlugIn ( $slug, $locale )