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

Author: Kamil Kokot ([email protected])
Author: Magdalena Banasiak ([email protected])
Author: Łukasz Chruściel ([email protected])
Inheritance: implements Behat\Behat\Context\Context
显示文件 Open project: sylius/sylius

Public Methods

Method Description
__construct ( Sylius\Behat\Service\SharedStorageInterface $sharedStorage, Sylius\Behat\Page\Admin\Product\CreateSimpleProductPageInterface $createSimpleProductPage, Sylius\Behat\Page\Admin\Product\CreateConfigurableProductPageInterface $createConfigurableProductPage, Sylius\Behat\Page\Admin\Product\IndexPageInterface $indexPage, Sylius\Behat\Page\Admin\Product\UpdateSimpleProductPageInterface $updateSimpleProductPage, Sylius\Behat\Page\Admin\Product\UpdateConfigurableProductPageInterface $updateConfigurableProductPage, Sylius\Behat\Page\Admin\ProductReview\IndexPageInterface $productReviewIndexPage, Sylius\Behat\Page\Admin\Product\IndexPerTaxonPageInterface $indexPerTaxonPage, Sylius\Behat\Service\Resolver\CurrentPageResolverInterface $currentPageResolver, Sylius\Behat\Service\NotificationCheckerInterface $notificationChecker )
iAddIt ( )
iAddTheOptionToIt ( $optionName )
iAmBrowsingProductsFromTaxon ( Sylius\Component\Taxonomy\Model\TaxonInterface $taxon )
iAssociateProductsAsProductAssociation ( Sylius\Component\Product\Model\ProductAssociationTypeInterface $productAssociationType, $productsNames )
iAttachImageWithACode ( $path, $code )
iAttachImageWithoutACode ( $path )
iChangeItsImageToPathForTheCode ( $path, $code )
iChangeItsPriceTo ( $price, $channelName )
iChooseCalculator ( $calculatorName )
iChooseMainTaxon ( Sylius\Component\Taxonomy\Model\TaxonInterface $taxon )
iDeleteProduct ( Sylius\Component\Core\Model\ProductInterface $product )
iDisableItsTracking ( )
iEnableItsTracking ( )
iEnableSlugModification ( $localeCode = 'en_US' )
iFilterThemByTaxon ( $taxonName )
iMakeItAvailableInChannel ( $channel )
iRemoveAnAssociatedProductFromProductAssociation ( $productName, Sylius\Component\Product\Model\ProductAssociationTypeInterface $productAssociationType )
iRemoveAnImageWithACode ( $code )
iRemoveItsAttribute ( $attribute )
iRemoveItsNameFromTranslation ( $language )
iRemoveTheFirstImage ( )
iRenameItToIn ( $name, $language )
iSaveMyChanges ( )
iSaveMyNewConfiguration ( )
iSetItsAttributeTo ( $attribute, $value )
iSetItsPriceTo ( $price, $channelName )
iSetItsShippingCategoryAs ( $shippingCategoryName )
iSetItsSlugToIn ( $slug = null, $language = 'en_US' )
iSetThePositionOfTo ( $productName, $position )
iShouldBeNotifiedOfFailure ( )
iShouldBeNotifiedThatAnImageCodeIsRequired ( )
iShouldBeNotifiedThatCodeHasToBeUnique ( )
iShouldBeNotifiedThatIsRequired ( $element )
iShouldBeNotifiedThatPriceIsRequired ( )
iShouldBeNotifiedThatPriceMustBeDefinedForEveryChannel ( )
iShouldBeNotifiedThatSimpleProductCodeHasToBeUnique ( )
iShouldBeNotifiedThatTheImageWithThisCodeAlreadyExists ( )
iShouldNotSeeAnyProductWith ( $field, $value )
iShouldSeeProductWith ( $field, $value )
iShouldSeeProductsInTheList ( $numberOfProducts )
iSortProductsBy ( $field )
iSpecifyItsCodeAs ( $code = null )
iWantToBrowseProducts ( )
iWantToCreateANewConfigurableProduct ( )
iWantToCreateANewSimpleProduct ( )
iWantToModifyAProduct ( Sylius\Component\Core\Model\ProductInterface $product )
itShouldBePricedAtForChannel ( Sylius\Component\Core\Model\ProductInterface $product, $price, $channelName )
itsAttributeShouldBe ( $attribute, Sylius\Component\Core\Model\ProductInterface $product, $value )
productShouldExistInTheProductCatalog ( Sylius\Component\Core\Model\ProductInterface $product )
productShouldNotExist ( Sylius\Component\Core\Model\ProductInterface $product )
productShouldNotHaveAttribute ( Sylius\Component\Core\Model\ProductInterface $product, $attribute )
productSlugShouldBe ( Sylius\Component\Core\Model\ProductInterface $product, $slug, $locale = "en_US" )
productWithNameShouldNotBeAdded ( $element, $value )
theCodeFieldShouldBeDisabled ( )
theFirstProductOnTheListShouldHave ( $field, $value )
theImageCodeFieldShouldBeDisabled ( )
theLastProductOnTheListShouldHave ( $field, $value )
theOptionFieldShouldBeDisabled ( )
theProductForCurrencyAndChannelShouldBePricedAt ( Sylius\Component\Currency\Model\CurrencyInterface $currency, Sylius\Component\Core\Model\ChannelInterface $channel, $price )
theProductShouldAppearInTheShop ( $productName )
theProductShouldHaveAnAssociationWithProducts ( Sylius\Component\Product\Model\ProductAssociationTypeInterface $productAssociationType, $productsNames )
theProductShouldNotHaveAnAssociationWithProducts ( Sylius\Component\Product\Model\ProductAssociationTypeInterface $productAssociationType, $productName )
theSlugFieldShouldNotBeEditable ( $localeCode = 'en_US' )
thereAreNoProductReviews ( Sylius\Component\Core\Model\ProductInterface $product )
thereShouldStillBeOnlyOneImageInThisTaxon ( Sylius\Component\Core\Model\ProductInterface $product )
theyShouldHaveOrderLikeAnd ( $productNames )
thisProductElementShouldBe ( $name )
thisProductElementShouldHaveSlugIn ( $slug, $language )
thisProductMainTaxonShouldBe ( Sylius\Component\Core\Model\ProductInterface $product, $taxonName )
thisProductPriceShouldBeEqualTo ( $price )
thisProductShouldBeTracked ( Sylius\Component\Core\Model\ProductInterface $product )
thisProductShouldHaveAnImageWithCode ( Sylius\Component\Core\Model\ProductInterface $product, $code )
thisProductShouldHaveOption ( $productOption )
thisProductShouldNoLongerHavePriceForChannel ( Sylius\Component\Core\Model\ProductInterface $product, $channelName )
thisProductShouldNotBeTracked ( Sylius\Component\Core\Model\ProductInterface $product )
thisProductShouldNotHaveAnImageWithCode ( Sylius\Component\Core\Model\ProductInterface $product, $code )
thisProductShouldNotHaveImages ( Sylius\Component\Core\Model\ProductInterface $product )

Private Methods

Method Description
assertElementValue ( string $element, string $value )
assertValidationMessage ( string $element, string $message )
resolveCurrentPage ( ) : Sylius\Behat\Page\SymfonyPageInterface

Method Details

__construct() public method

public __construct ( Sylius\Behat\Service\SharedStorageInterface $sharedStorage, Sylius\Behat\Page\Admin\Product\CreateSimpleProductPageInterface $createSimpleProductPage, Sylius\Behat\Page\Admin\Product\CreateConfigurableProductPageInterface $createConfigurableProductPage, Sylius\Behat\Page\Admin\Product\IndexPageInterface $indexPage, Sylius\Behat\Page\Admin\Product\UpdateSimpleProductPageInterface $updateSimpleProductPage, Sylius\Behat\Page\Admin\Product\UpdateConfigurableProductPageInterface $updateConfigurableProductPage, Sylius\Behat\Page\Admin\ProductReview\IndexPageInterface $productReviewIndexPage, Sylius\Behat\Page\Admin\Product\IndexPerTaxonPageInterface $indexPerTaxonPage, Sylius\Behat\Service\Resolver\CurrentPageResolverInterface $currentPageResolver, Sylius\Behat\Service\NotificationCheckerInterface $notificationChecker )
$sharedStorage Sylius\Behat\Service\SharedStorageInterface
$createSimpleProductPage Sylius\Behat\Page\Admin\Product\CreateSimpleProductPageInterface
$createConfigurableProductPage Sylius\Behat\Page\Admin\Product\CreateConfigurableProductPageInterface
$indexPage Sylius\Behat\Page\Admin\Product\IndexPageInterface
$updateSimpleProductPage Sylius\Behat\Page\Admin\Product\UpdateSimpleProductPageInterface
$updateConfigurableProductPage Sylius\Behat\Page\Admin\Product\UpdateConfigurableProductPageInterface
$productReviewIndexPage Sylius\Behat\Page\Admin\ProductReview\IndexPageInterface
$indexPerTaxonPage Sylius\Behat\Page\Admin\Product\IndexPerTaxonPageInterface
$currentPageResolver Sylius\Behat\Service\Resolver\CurrentPageResolverInterface
$notificationChecker Sylius\Behat\Service\NotificationCheckerInterface

iAddIt() public method

public iAddIt ( )

iAddTheOptionToIt() public method

public iAddTheOptionToIt ( $optionName )

iAmBrowsingProductsFromTaxon() public method

public iAmBrowsingProductsFromTaxon ( Sylius\Component\Taxonomy\Model\TaxonInterface $taxon )
$taxon Sylius\Component\Taxonomy\Model\TaxonInterface

iAssociateProductsAsProductAssociation() public method

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

iAttachImageWithACode() public method

public iAttachImageWithACode ( $path, $code )

iAttachImageWithoutACode() public method

public iAttachImageWithoutACode ( $path )

iChangeItsImageToPathForTheCode() public method

public iChangeItsImageToPathForTheCode ( $path, $code )

iChangeItsPriceTo() public method

public iChangeItsPriceTo ( $price, $channelName )

iChooseCalculator() public method

public iChooseCalculator ( $calculatorName )

iChooseMainTaxon() public method

public iChooseMainTaxon ( Sylius\Component\Taxonomy\Model\TaxonInterface $taxon )
$taxon Sylius\Component\Taxonomy\Model\TaxonInterface

iDeleteProduct() public method

public iDeleteProduct ( Sylius\Component\Core\Model\ProductInterface $product )
$product Sylius\Component\Core\Model\ProductInterface

iDisableItsTracking() public method

public iDisableItsTracking ( )

iEnableItsTracking() public method

public iEnableItsTracking ( )

iEnableSlugModification() public method

public iEnableSlugModification ( $localeCode = 'en_US' )

iFilterThemByTaxon() public method

public iFilterThemByTaxon ( $taxonName )

iMakeItAvailableInChannel() public method

public iMakeItAvailableInChannel ( $channel )

iRemoveAnAssociatedProductFromProductAssociation() public method

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

iRemoveAnImageWithACode() public method

public iRemoveAnImageWithACode ( $code )

iRemoveItsAttribute() public method

public iRemoveItsAttribute ( $attribute )

iRemoveItsNameFromTranslation() public method

public iRemoveItsNameFromTranslation ( $language )

iRemoveTheFirstImage() public method

iRenameItToIn() public method

public iRenameItToIn ( $name, $language )

iSaveMyChanges() public method

public iSaveMyChanges ( )

iSaveMyNewConfiguration() public method

iSetItsAttributeTo() public method

public iSetItsAttributeTo ( $attribute, $value )

iSetItsPriceTo() public method

public iSetItsPriceTo ( $price, $channelName )

iSetItsShippingCategoryAs() public method

public iSetItsShippingCategoryAs ( $shippingCategoryName )

iSetItsSlugToIn() public method

public iSetItsSlugToIn ( $slug = null, $language = 'en_US' )

iSetThePositionOfTo() public method

public iSetThePositionOfTo ( $productName, $position )

iShouldBeNotifiedOfFailure() public method

iShouldBeNotifiedThatAnImageCodeIsRequired() public method

iShouldBeNotifiedThatCodeHasToBeUnique() public method

iShouldBeNotifiedThatIsRequired() public method

public iShouldBeNotifiedThatIsRequired ( $element )

iShouldBeNotifiedThatPriceIsRequired() public method

iShouldBeNotifiedThatPriceMustBeDefinedForEveryChannel() public method

iShouldBeNotifiedThatSimpleProductCodeHasToBeUnique() public method

iShouldBeNotifiedThatTheImageWithThisCodeAlreadyExists() public method

iShouldNotSeeAnyProductWith() public method

public iShouldNotSeeAnyProductWith ( $field, $value )

iShouldSeeProductWith() public method

public iShouldSeeProductWith ( $field, $value )

iShouldSeeProductsInTheList() public method

public iShouldSeeProductsInTheList ( $numberOfProducts )

iSortProductsBy() public method

public iSortProductsBy ( $field )

iSpecifyItsCodeAs() public method

public iSpecifyItsCodeAs ( $code = null )

iWantToBrowseProducts() public method

iWantToCreateANewConfigurableProduct() public method

iWantToCreateANewSimpleProduct() public method

iWantToModifyAProduct() public method

public iWantToModifyAProduct ( Sylius\Component\Core\Model\ProductInterface $product )
$product Sylius\Component\Core\Model\ProductInterface

itShouldBePricedAtForChannel() public method

public itShouldBePricedAtForChannel ( Sylius\Component\Core\Model\ProductInterface $product, $price, $channelName )
$product Sylius\Component\Core\Model\ProductInterface

itsAttributeShouldBe() public method

public itsAttributeShouldBe ( $attribute, Sylius\Component\Core\Model\ProductInterface $product, $value )
$product Sylius\Component\Core\Model\ProductInterface

productShouldExistInTheProductCatalog() public method

public productShouldExistInTheProductCatalog ( Sylius\Component\Core\Model\ProductInterface $product )
$product Sylius\Component\Core\Model\ProductInterface

productShouldNotExist() public method

public productShouldNotExist ( Sylius\Component\Core\Model\ProductInterface $product )
$product Sylius\Component\Core\Model\ProductInterface

productShouldNotHaveAttribute() public method

public productShouldNotHaveAttribute ( Sylius\Component\Core\Model\ProductInterface $product, $attribute )
$product Sylius\Component\Core\Model\ProductInterface

productSlugShouldBe() public method

public productSlugShouldBe ( Sylius\Component\Core\Model\ProductInterface $product, $slug, $locale = "en_US" )
$product Sylius\Component\Core\Model\ProductInterface

productWithNameShouldNotBeAdded() public method

public productWithNameShouldNotBeAdded ( $element, $value )

theCodeFieldShouldBeDisabled() public method

theFirstProductOnTheListShouldHave() public method

public theFirstProductOnTheListShouldHave ( $field, $value )

theImageCodeFieldShouldBeDisabled() public method

theLastProductOnTheListShouldHave() public method

public theLastProductOnTheListShouldHave ( $field, $value )

theOptionFieldShouldBeDisabled() public method

theProductForCurrencyAndChannelShouldBePricedAt() public method

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

theProductShouldAppearInTheShop() public method

public theProductShouldAppearInTheShop ( $productName )

theProductShouldHaveAnAssociationWithProducts() public method

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

theProductShouldNotHaveAnAssociationWithProducts() public method

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

theSlugFieldShouldNotBeEditable() public method

public theSlugFieldShouldNotBeEditable ( $localeCode = 'en_US' )

thereAreNoProductReviews() public method

public thereAreNoProductReviews ( Sylius\Component\Core\Model\ProductInterface $product )
$product Sylius\Component\Core\Model\ProductInterface

thereShouldStillBeOnlyOneImageInThisTaxon() public method

public thereShouldStillBeOnlyOneImageInThisTaxon ( Sylius\Component\Core\Model\ProductInterface $product )
$product Sylius\Component\Core\Model\ProductInterface

theyShouldHaveOrderLikeAnd() public method

public theyShouldHaveOrderLikeAnd ( $productNames )

thisProductElementShouldBe() public method

public thisProductElementShouldBe ( $name )

thisProductElementShouldHaveSlugIn() public method

public thisProductElementShouldHaveSlugIn ( $slug, $language )

thisProductMainTaxonShouldBe() public method

public thisProductMainTaxonShouldBe ( Sylius\Component\Core\Model\ProductInterface $product, $taxonName )
$product Sylius\Component\Core\Model\ProductInterface

thisProductPriceShouldBeEqualTo() public method

thisProductShouldBeTracked() public method

public thisProductShouldBeTracked ( Sylius\Component\Core\Model\ProductInterface $product )
$product Sylius\Component\Core\Model\ProductInterface

thisProductShouldHaveAnImageWithCode() public method

public thisProductShouldHaveAnImageWithCode ( Sylius\Component\Core\Model\ProductInterface $product, $code )
$product Sylius\Component\Core\Model\ProductInterface

thisProductShouldHaveOption() public method

public thisProductShouldHaveOption ( $productOption )

thisProductShouldNoLongerHavePriceForChannel() public method

public thisProductShouldNoLongerHavePriceForChannel ( Sylius\Component\Core\Model\ProductInterface $product, $channelName )
$product Sylius\Component\Core\Model\ProductInterface

thisProductShouldNotBeTracked() public method

public thisProductShouldNotBeTracked ( Sylius\Component\Core\Model\ProductInterface $product )
$product Sylius\Component\Core\Model\ProductInterface

thisProductShouldNotHaveAnImageWithCode() public method

public thisProductShouldNotHaveAnImageWithCode ( Sylius\Component\Core\Model\ProductInterface $product, $code )
$product Sylius\Component\Core\Model\ProductInterface

thisProductShouldNotHaveImages() public method

public thisProductShouldNotHaveImages ( Sylius\Component\Core\Model\ProductInterface $product )
$product Sylius\Component\Core\Model\ProductInterface