PHP Class Sylius\Behat\Page\Admin\PromotionCoupon\GeneratePage

Author: Arkadiusz Krakowiak ([email protected])
Inheritance: extends Sylius\Behat\Page\SymfonyPage, implements Sylius\Behat\Page\Admin\PromotionCoupon\GeneratePageInterface
Exibir arquivo Open project: sylius/sylius

Public Methods

Method Description
checkAmountValidation ( $message )
checkCodeLengthValidation ( $message )
checkGenerationValidation ( $message )
generate ( )
getRouteName ( )
setExpiresAt ( DateTime $date )
setUsageLimit ( $limit )
specifyAmount ( $amount )
specifyCodeLength ( $codeLength )

Protected Methods

Method Description
getDefinedElements ( )

Private Methods

Method Description
checkValidationMessageFor ( string $element, string $message ) : boolean
getValidatedField ( Behat\Mink\Element\NodeElement $element ) : Behat\Mink\Element\NodeElement

Method Details

checkAmountValidation() public method

public checkAmountValidation ( $message )

checkCodeLengthValidation() public method

public checkCodeLengthValidation ( $message )

checkGenerationValidation() public method

public checkGenerationValidation ( $message )

generate() public method

public generate ( )

getDefinedElements() protected method

protected getDefinedElements ( )

getRouteName() public method

public getRouteName ( )

setExpiresAt() public method

public setExpiresAt ( DateTime $date )
$date DateTime

setUsageLimit() public method

public setUsageLimit ( $limit )

specifyAmount() public method

public specifyAmount ( $amount )

specifyCodeLength() public method

public specifyCodeLength ( $codeLength )