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
Afficher le fichier Open project: sylius/sylius

Méthodes publiques

Méthode 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 )

Méthodes protégées

Méthode Description
getDefinedElements ( )
getElement ( $name, array $parameters = [] )

Private Methods

Méthode 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 méthode

public activateLanguageTab ( $locale )

addAttribute() public méthode

public addAttribute ( $attribute, $value )

associateProducts() public méthode

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

attachImage() public méthode

public attachImage ( $path, $code = null )

checkChannel() public méthode

public checkChannel ( $channelName )

choosePricingCalculator() public méthode

public choosePricingCalculator ( $name )

getDefinedElements() protected méthode

protected getDefinedElements ( )

getElement() protected méthode

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

getRouteName() public méthode

public getRouteName ( )

nameItIn() public méthode

public nameItIn ( $name, $localeCode )

removeAssociatedProduct() public méthode

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

removeAttribute() public méthode

public removeAttribute ( $attribute )

selectShippingCategory() public méthode

public selectShippingCategory ( $shippingCategoryName )

specifyPrice() public méthode

public specifyPrice ( $channelName, $price )

specifyPriceForChannelAndCurrency() public méthode

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 méthode

public specifySlugIn ( $slug, $locale )