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

Méthodes publiques

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

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

Method Details

__construct() public méthode

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

public iAddIt ( )

iAddTheOptionToIt() public méthode

public iAddTheOptionToIt ( $optionName )

iAmBrowsingProductsFromTaxon() public méthode

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

iAssociateProductsAsProductAssociation() public méthode

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

iAttachImageWithACode() public méthode

public iAttachImageWithACode ( $path, $code )

iAttachImageWithoutACode() public méthode

public iAttachImageWithoutACode ( $path )

iChangeItsImageToPathForTheCode() public méthode

public iChangeItsImageToPathForTheCode ( $path, $code )

iChangeItsPriceTo() public méthode

public iChangeItsPriceTo ( $price, $channelName )

iChooseCalculator() public méthode

public iChooseCalculator ( $calculatorName )

iChooseMainTaxon() public méthode

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

iDeleteProduct() public méthode

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

iDisableItsTracking() public méthode

public iDisableItsTracking ( )

iEnableItsTracking() public méthode

public iEnableItsTracking ( )

iEnableSlugModification() public méthode

public iEnableSlugModification ( $localeCode = 'en_US' )

iFilterThemByTaxon() public méthode

public iFilterThemByTaxon ( $taxonName )

iMakeItAvailableInChannel() public méthode

public iMakeItAvailableInChannel ( $channel )

iRemoveAnAssociatedProductFromProductAssociation() public méthode

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

iRemoveAnImageWithACode() public méthode

public iRemoveAnImageWithACode ( $code )

iRemoveItsAttribute() public méthode

public iRemoveItsAttribute ( $attribute )

iRemoveItsNameFromTranslation() public méthode

public iRemoveItsNameFromTranslation ( $language )

iRemoveTheFirstImage() public méthode

iRenameItToIn() public méthode

public iRenameItToIn ( $name, $language )

iSaveMyChanges() public méthode

public iSaveMyChanges ( )

iSaveMyNewConfiguration() public méthode

iSetItsAttributeTo() public méthode

public iSetItsAttributeTo ( $attribute, $value )

iSetItsPriceTo() public méthode

public iSetItsPriceTo ( $price, $channelName )

iSetItsShippingCategoryAs() public méthode

public iSetItsShippingCategoryAs ( $shippingCategoryName )

iSetItsSlugToIn() public méthode

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

iSetThePositionOfTo() public méthode

public iSetThePositionOfTo ( $productName, $position )

iShouldBeNotifiedOfFailure() public méthode

iShouldBeNotifiedThatAnImageCodeIsRequired() public méthode

iShouldBeNotifiedThatCodeHasToBeUnique() public méthode

iShouldBeNotifiedThatIsRequired() public méthode

public iShouldBeNotifiedThatIsRequired ( $element )

iShouldBeNotifiedThatPriceIsRequired() public méthode

iShouldBeNotifiedThatPriceMustBeDefinedForEveryChannel() public méthode

iShouldBeNotifiedThatSimpleProductCodeHasToBeUnique() public méthode

iShouldBeNotifiedThatTheImageWithThisCodeAlreadyExists() public méthode

iShouldNotSeeAnyProductWith() public méthode

public iShouldNotSeeAnyProductWith ( $field, $value )

iShouldSeeProductWith() public méthode

public iShouldSeeProductWith ( $field, $value )

iShouldSeeProductsInTheList() public méthode

public iShouldSeeProductsInTheList ( $numberOfProducts )

iSortProductsBy() public méthode

public iSortProductsBy ( $field )

iSpecifyItsCodeAs() public méthode

public iSpecifyItsCodeAs ( $code = null )

iWantToBrowseProducts() public méthode

iWantToCreateANewConfigurableProduct() public méthode

iWantToCreateANewSimpleProduct() public méthode

iWantToModifyAProduct() public méthode

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

itShouldBePricedAtForChannel() public méthode

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

itsAttributeShouldBe() public méthode

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

productShouldExistInTheProductCatalog() public méthode

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

productShouldNotExist() public méthode

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

productShouldNotHaveAttribute() public méthode

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

productSlugShouldBe() public méthode

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

productWithNameShouldNotBeAdded() public méthode

public productWithNameShouldNotBeAdded ( $element, $value )

theCodeFieldShouldBeDisabled() public méthode

theFirstProductOnTheListShouldHave() public méthode

public theFirstProductOnTheListShouldHave ( $field, $value )

theImageCodeFieldShouldBeDisabled() public méthode

theLastProductOnTheListShouldHave() public méthode

public theLastProductOnTheListShouldHave ( $field, $value )

theOptionFieldShouldBeDisabled() public méthode

theProductForCurrencyAndChannelShouldBePricedAt() public méthode

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

public theProductShouldAppearInTheShop ( $productName )

theProductShouldHaveAnAssociationWithProducts() public méthode

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

theProductShouldNotHaveAnAssociationWithProducts() public méthode

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

theSlugFieldShouldNotBeEditable() public méthode

public theSlugFieldShouldNotBeEditable ( $localeCode = 'en_US' )

thereAreNoProductReviews() public méthode

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

thereShouldStillBeOnlyOneImageInThisTaxon() public méthode

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

theyShouldHaveOrderLikeAnd() public méthode

public theyShouldHaveOrderLikeAnd ( $productNames )

thisProductElementShouldBe() public méthode

public thisProductElementShouldBe ( $name )

thisProductElementShouldHaveSlugIn() public méthode

public thisProductElementShouldHaveSlugIn ( $slug, $language )

thisProductMainTaxonShouldBe() public méthode

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

thisProductPriceShouldBeEqualTo() public méthode

thisProductShouldBeTracked() public méthode

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

thisProductShouldHaveAnImageWithCode() public méthode

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

thisProductShouldHaveOption() public méthode

public thisProductShouldHaveOption ( $productOption )

thisProductShouldNoLongerHavePriceForChannel() public méthode

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

thisProductShouldNotBeTracked() public méthode

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

thisProductShouldNotHaveAnImageWithCode() public méthode

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

thisProductShouldNotHaveImages() public méthode

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