PHP 클래스 Sylius\Behat\Context\Ui\Admin\ManagingProductsContext

저자: Kamil Kokot ([email protected])
저자: Magdalena Banasiak ([email protected])
저자: Łukasz Chruściel ([email protected])
상속: implements Behat\Behat\Context\Context
파일 보기 프로젝트 열기: sylius/sylius

공개 메소드들

메소드 설명
__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 )

비공개 메소드들

메소드 설명
assertElementValue ( string $element, string $value )
assertValidationMessage ( string $element, string $message )
resolveCurrentPage ( ) : Sylius\Behat\Page\SymfonyPageInterface

메소드 상세

__construct() 공개 메소드

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 iAddIt ( )

iAddTheOptionToIt() 공개 메소드

public iAddTheOptionToIt ( $optionName )

iAmBrowsingProductsFromTaxon() 공개 메소드

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

iAssociateProductsAsProductAssociation() 공개 메소드

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

iAttachImageWithACode() 공개 메소드

public iAttachImageWithACode ( $path, $code )

iAttachImageWithoutACode() 공개 메소드

public iAttachImageWithoutACode ( $path )

iChangeItsImageToPathForTheCode() 공개 메소드

public iChangeItsImageToPathForTheCode ( $path, $code )

iChangeItsPriceTo() 공개 메소드

public iChangeItsPriceTo ( $price, $channelName )

iChooseCalculator() 공개 메소드

public iChooseCalculator ( $calculatorName )

iChooseMainTaxon() 공개 메소드

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

iDeleteProduct() 공개 메소드

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

iDisableItsTracking() 공개 메소드

public iDisableItsTracking ( )

iEnableItsTracking() 공개 메소드

public iEnableItsTracking ( )

iEnableSlugModification() 공개 메소드

public iEnableSlugModification ( $localeCode = 'en_US' )

iFilterThemByTaxon() 공개 메소드

public iFilterThemByTaxon ( $taxonName )

iMakeItAvailableInChannel() 공개 메소드

public iMakeItAvailableInChannel ( $channel )

iRemoveAnAssociatedProductFromProductAssociation() 공개 메소드

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

iRemoveAnImageWithACode() 공개 메소드

public iRemoveAnImageWithACode ( $code )

iRemoveItsAttribute() 공개 메소드

public iRemoveItsAttribute ( $attribute )

iRemoveItsNameFromTranslation() 공개 메소드

public iRemoveItsNameFromTranslation ( $language )

iRemoveTheFirstImage() 공개 메소드

iRenameItToIn() 공개 메소드

public iRenameItToIn ( $name, $language )

iSaveMyChanges() 공개 메소드

public iSaveMyChanges ( )

iSaveMyNewConfiguration() 공개 메소드

iSetItsAttributeTo() 공개 메소드

public iSetItsAttributeTo ( $attribute, $value )

iSetItsPriceTo() 공개 메소드

public iSetItsPriceTo ( $price, $channelName )

iSetItsShippingCategoryAs() 공개 메소드

public iSetItsShippingCategoryAs ( $shippingCategoryName )

iSetItsSlugToIn() 공개 메소드

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

iSetThePositionOfTo() 공개 메소드

public iSetThePositionOfTo ( $productName, $position )

iShouldBeNotifiedOfFailure() 공개 메소드

iShouldBeNotifiedThatAnImageCodeIsRequired() 공개 메소드

iShouldBeNotifiedThatCodeHasToBeUnique() 공개 메소드

iShouldBeNotifiedThatIsRequired() 공개 메소드

public iShouldBeNotifiedThatIsRequired ( $element )

iShouldBeNotifiedThatPriceIsRequired() 공개 메소드

iShouldBeNotifiedThatPriceMustBeDefinedForEveryChannel() 공개 메소드

iShouldBeNotifiedThatSimpleProductCodeHasToBeUnique() 공개 메소드

iShouldBeNotifiedThatTheImageWithThisCodeAlreadyExists() 공개 메소드

iShouldNotSeeAnyProductWith() 공개 메소드

public iShouldNotSeeAnyProductWith ( $field, $value )

iShouldSeeProductWith() 공개 메소드

public iShouldSeeProductWith ( $field, $value )

iShouldSeeProductsInTheList() 공개 메소드

public iShouldSeeProductsInTheList ( $numberOfProducts )

iSortProductsBy() 공개 메소드

public iSortProductsBy ( $field )

iSpecifyItsCodeAs() 공개 메소드

public iSpecifyItsCodeAs ( $code = null )

iWantToBrowseProducts() 공개 메소드

iWantToCreateANewConfigurableProduct() 공개 메소드

iWantToCreateANewSimpleProduct() 공개 메소드

iWantToModifyAProduct() 공개 메소드

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

itShouldBePricedAtForChannel() 공개 메소드

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

itsAttributeShouldBe() 공개 메소드

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

productShouldExistInTheProductCatalog() 공개 메소드

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

productShouldNotExist() 공개 메소드

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

productShouldNotHaveAttribute() 공개 메소드

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

productSlugShouldBe() 공개 메소드

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

productWithNameShouldNotBeAdded() 공개 메소드

public productWithNameShouldNotBeAdded ( $element, $value )

theCodeFieldShouldBeDisabled() 공개 메소드

theFirstProductOnTheListShouldHave() 공개 메소드

public theFirstProductOnTheListShouldHave ( $field, $value )

theImageCodeFieldShouldBeDisabled() 공개 메소드

theLastProductOnTheListShouldHave() 공개 메소드

public theLastProductOnTheListShouldHave ( $field, $value )

theOptionFieldShouldBeDisabled() 공개 메소드

theProductForCurrencyAndChannelShouldBePricedAt() 공개 메소드

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 theProductShouldAppearInTheShop ( $productName )

theProductShouldHaveAnAssociationWithProducts() 공개 메소드

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

theProductShouldNotHaveAnAssociationWithProducts() 공개 메소드

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

theSlugFieldShouldNotBeEditable() 공개 메소드

public theSlugFieldShouldNotBeEditable ( $localeCode = 'en_US' )

thereAreNoProductReviews() 공개 메소드

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

thereShouldStillBeOnlyOneImageInThisTaxon() 공개 메소드

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

theyShouldHaveOrderLikeAnd() 공개 메소드

public theyShouldHaveOrderLikeAnd ( $productNames )

thisProductElementShouldBe() 공개 메소드

public thisProductElementShouldBe ( $name )

thisProductElementShouldHaveSlugIn() 공개 메소드

public thisProductElementShouldHaveSlugIn ( $slug, $language )

thisProductMainTaxonShouldBe() 공개 메소드

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

thisProductPriceShouldBeEqualTo() 공개 메소드

thisProductShouldBeTracked() 공개 메소드

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

thisProductShouldHaveAnImageWithCode() 공개 메소드

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

thisProductShouldHaveOption() 공개 메소드

public thisProductShouldHaveOption ( $productOption )

thisProductShouldNoLongerHavePriceForChannel() 공개 메소드

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

thisProductShouldNotBeTracked() 공개 메소드

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

thisProductShouldNotHaveAnImageWithCode() 공개 메소드

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

thisProductShouldNotHaveImages() 공개 메소드

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