PHP Class Sylius\Behat\Context\Ui\Admin\ManagingCurrenciesContext

Author: Anna Walasek ([email protected])
Inheritance: implements Behat\Behat\Context\Context
Show file Open project: sylius/sylius

Public Methods

Method Description
__construct ( Sylius\Behat\Page\Admin\Currency\IndexPageInterface $indexPage, Sylius\Behat\Page\Admin\Currency\CreatePageInterface $createPage, Sylius\Behat\Page\Admin\Currency\UpdatePageInterface $updatePage, Sylius\Behat\Service\Resolver\CurrentPageResolverInterface $currentPageResolver )
currencyShouldAppearInTheStore ( Sylius\Component\Currency\Model\CurrencyInterface $currency )
iAddIt ( )
iCannotChangeItsExchangeRate ( )
iCannotDisableIt ( )
iChangeExchangeRateTo ( $exchangeRate )
iChoose ( $currencyName )
iDisableIt ( )
iEnableIt ( )
iRemoveItsExchangeRate ( )
iSaveMyChanges ( )
iShouldBeNotifiedThatCurrencyCodeMustBeUnique ( )
iShouldBeNotifiedThatExchangeRateIsRequired ( )
iShouldSeeCurrenciesInTheList ( $amountOfCurrencies )
iSpecifyExchangeRate ( $exchangeRate )
iWantToAddNewCurrency ( )
iWantToEditThisCurrency ( Sylius\Component\Currency\Model\CurrencyInterface $currency )
iWantToSeeAllCurrenciesInStore ( )
theCodeFiledShouldBeDisabled ( )
theCurrencyShouldNotBeAdded ( $currencyName )
theCurrencyShouldStillHaveExchangeRateEquals ( Sylius\Component\Currency\Model\CurrencyInterface $currency, $exchangeRate )
thereShouldStillBeOnlyOneCurrencyWithCode ( $element, $codeValue )
thisCurrencyShouldBeDisabled ( Sylius\Component\Currency\Model\CurrencyInterface $currency )
thisCurrencyShouldBeEnabled ( Sylius\Component\Currency\Model\CurrencyInterface $currency )
thisCurrencyShouldHaveExchangeRate ( $exchangeRate )

Method Details

__construct() public method

public __construct ( Sylius\Behat\Page\Admin\Currency\IndexPageInterface $indexPage, Sylius\Behat\Page\Admin\Currency\CreatePageInterface $createPage, Sylius\Behat\Page\Admin\Currency\UpdatePageInterface $updatePage, Sylius\Behat\Service\Resolver\CurrentPageResolverInterface $currentPageResolver )
$indexPage Sylius\Behat\Page\Admin\Currency\IndexPageInterface
$createPage Sylius\Behat\Page\Admin\Currency\CreatePageInterface
$updatePage Sylius\Behat\Page\Admin\Currency\UpdatePageInterface
$currentPageResolver Sylius\Behat\Service\Resolver\CurrentPageResolverInterface

currencyShouldAppearInTheStore() public method

public currencyShouldAppearInTheStore ( Sylius\Component\Currency\Model\CurrencyInterface $currency )
$currency Sylius\Component\Currency\Model\CurrencyInterface

iAddIt() public method

public iAddIt ( )

iCannotChangeItsExchangeRate() public method

iCannotDisableIt() public method

public iCannotDisableIt ( )

iChangeExchangeRateTo() public method

public iChangeExchangeRateTo ( $exchangeRate )

iChoose() public method

public iChoose ( $currencyName )

iDisableIt() public method

public iDisableIt ( )

iEnableIt() public method

public iEnableIt ( )

iRemoveItsExchangeRate() public method

iSaveMyChanges() public method

public iSaveMyChanges ( )

iShouldBeNotifiedThatCurrencyCodeMustBeUnique() public method

iShouldBeNotifiedThatExchangeRateIsRequired() public method

iShouldSeeCurrenciesInTheList() public method

public iShouldSeeCurrenciesInTheList ( $amountOfCurrencies )

iSpecifyExchangeRate() public method

public iSpecifyExchangeRate ( $exchangeRate )

iWantToAddNewCurrency() public method

iWantToEditThisCurrency() public method

public iWantToEditThisCurrency ( Sylius\Component\Currency\Model\CurrencyInterface $currency )
$currency Sylius\Component\Currency\Model\CurrencyInterface

iWantToSeeAllCurrenciesInStore() public method

theCodeFiledShouldBeDisabled() public method

theCurrencyShouldNotBeAdded() public method

public theCurrencyShouldNotBeAdded ( $currencyName )

theCurrencyShouldStillHaveExchangeRateEquals() public method

public theCurrencyShouldStillHaveExchangeRateEquals ( Sylius\Component\Currency\Model\CurrencyInterface $currency, $exchangeRate )
$currency Sylius\Component\Currency\Model\CurrencyInterface

thereShouldStillBeOnlyOneCurrencyWithCode() public method

public thereShouldStillBeOnlyOneCurrencyWithCode ( $element, $codeValue )

thisCurrencyShouldBeDisabled() public method

public thisCurrencyShouldBeDisabled ( Sylius\Component\Currency\Model\CurrencyInterface $currency )
$currency Sylius\Component\Currency\Model\CurrencyInterface

thisCurrencyShouldBeEnabled() public method

public thisCurrencyShouldBeEnabled ( Sylius\Component\Currency\Model\CurrencyInterface $currency )
$currency Sylius\Component\Currency\Model\CurrencyInterface

thisCurrencyShouldHaveExchangeRate() public method

public thisCurrencyShouldHaveExchangeRate ( $exchangeRate )