PHP Класс Sylius\Behat\Page\Admin\Product\CreateSimpleProductPage

Автор: Łukasz Chruściel ([email protected])
Наследование: extends Sylius\Behat\Page\Admin\Crud\CreatePage, implements Sylius\Behat\Page\Admin\Product\CreateSimpleProductPageInterface, use trait Sylius\Behat\Behaviour\SpecifiesItsCode
Показать файл Открыть проект

Открытые методы

Метод Описание
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 )

Защищенные методы

Метод Описание
getDefinedElements ( )
getElement ( $name, array $parameters = [] )

Приватные методы

Метод Описание
clickTab ( string $tabName )
clickTabIfItsNotActive ( string $tabName )
getLastImageElement ( ) : Behat\Mink\Element\NodeElement
selectElementFromAttributesDropdown ( integer $id )
waitForFormElement ( integer $timeout = 5 )
waitForSlugGenerationIfNecessary ( string $locale )

Описание методов

activateLanguageTab() публичный Метод

public activateLanguageTab ( $locale )

addAttribute() публичный Метод

public addAttribute ( $attribute, $value )

associateProducts() публичный Метод

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

attachImage() публичный Метод

public attachImage ( $path, $code = null )

checkChannel() публичный Метод

public checkChannel ( $channelName )

choosePricingCalculator() публичный Метод

public choosePricingCalculator ( $name )

getDefinedElements() защищенный Метод

protected getDefinedElements ( )

getElement() защищенный Метод

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

getRouteName() публичный Метод

public getRouteName ( )

nameItIn() публичный Метод

public nameItIn ( $name, $localeCode )

removeAssociatedProduct() публичный Метод

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

removeAttribute() публичный Метод

public removeAttribute ( $attribute )

selectShippingCategory() публичный Метод

public selectShippingCategory ( $shippingCategoryName )

specifyPrice() публичный Метод

public specifyPrice ( $channelName, $price )

specifyPriceForChannelAndCurrency() публичный Метод

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 specifySlugIn ( $slug, $locale )