PHP Класс Sylius\Behat\Context\Ui\Shop\ProductContext

Автор: Kamil Kokot ([email protected])
Автор: Magdalena Banasiak ([email protected])
Автор: Anna Walasek ([email protected])
Наследование: implements Behat\Behat\Context\Context
Показать файл Открыть проект

Открытые методы

Метод Описание
__construct ( Sylius\Behat\Page\Shop\Product\ShowPageInterface $showPage, Sylius\Behat\Page\Shop\Product\IndexPageInterface $indexPage, Sylius\Behat\Page\Shop\ProductReview\IndexPageInterface $productReviewsIndexPage )
iCheckListOfProductsForTaxon ( Sylius\Component\Core\Model\TaxonInterface $taxon )
iCheckThisProductSReviews ( Sylius\Component\Core\Model\ProductInterface $product )
iClearFilter ( )
iOpenPage ( $url )
iOpenProductPage ( Sylius\Component\Core\Model\ProductInterface $product )
iSearchForProductsWithName ( $name )
iSelectVariant ( $variantName )
iSetItsOptionTo ( $optionName, $optionValue )
iShouldBeAbleToAccessProduct ( Sylius\Component\Core\Model\ProductInterface $product )
iShouldBeNotifiedThatThereAreNoReviews ( )
iShouldBeNotifiedThatThisProductDoesNotHaveSufficientStock ( Sylius\Component\Core\Model\ProductInterface $product )
iShouldBeOnProductDetailedPage ( Sylius\Component\Core\Model\ProductInterface $product )
iShouldBeUnableToAddItToTheCart ( )
iShouldNotBeAbleToAccessProduct ( Sylius\Component\Core\Model\ProductInterface $product )
iShouldNotBeNotifiedThatThisProductDoesNotHaveSufficientStock ( Sylius\Component\Core\Model\ProductInterface $product )
iShouldNotSeeProduct ( $productName )
iShouldNotSeeReviewTitled ( $title )
iShouldNotSeeReviewTitledInTheList ( $title )
iShouldSeeAMainImage ( )
iShouldSeeAsItsAverageRating ( $rating )
iShouldSeeAttributes ( $count )
iShouldSeeEmptyListOfProducts ( )
iShouldSeeItIsOutOfStock ( )
iShouldSeeNumberOfProductReviewsInTheList ( $count )
iShouldSeeProduct ( $productName )
iShouldSeeProductName ( $name )
iShouldSeeProductReviews ( $count )
iShouldSeeProductWithName ( $name )
iShouldSeeProductsInTheList ( $numberOfProducts )
iShouldSeeReviewsTitled ( $reviews )
iShouldSeeTheProductAssociationWithProducts ( $productAssociationName, array $products )
iShouldSeeTheProductAttributeWithValue ( $attributeName, $expectedAttribute )
iShouldSeeTheProductPrice ( $price )
iShouldSeeTheProductWithPrice ( $productName, $productPrice )
iViewSortedProductsFromTaxon ( $sortDirection, Sylius\Component\Core\Model\TaxonInterface $taxon )
theFirstAttributeShouldBe ( $name )
theFirstProductOnTheListShouldHaveName ( $name )
theLastAttributeShouldBe ( $name )
theyShouldHaveOrderLikeAnd ( $productNames )
thisProductAverageRatingShouldBe ( Sylius\Component\Core\Model\ProductInterface $product, $averageRating )

Приватные методы

Метод Описание
assertIsProductIsInAssociation ( string $productName, string $productAssociationName )
getProductAttributes ( ) : Behat\Mink\Element\NodeElement[]

Описание методов

__construct() публичный Метод

public __construct ( Sylius\Behat\Page\Shop\Product\ShowPageInterface $showPage, Sylius\Behat\Page\Shop\Product\IndexPageInterface $indexPage, Sylius\Behat\Page\Shop\ProductReview\IndexPageInterface $productReviewsIndexPage )
$showPage Sylius\Behat\Page\Shop\Product\ShowPageInterface
$indexPage Sylius\Behat\Page\Shop\Product\IndexPageInterface
$productReviewsIndexPage Sylius\Behat\Page\Shop\ProductReview\IndexPageInterface

iCheckListOfProductsForTaxon() публичный Метод

public iCheckListOfProductsForTaxon ( Sylius\Component\Core\Model\TaxonInterface $taxon )
$taxon Sylius\Component\Core\Model\TaxonInterface

iCheckThisProductSReviews() публичный Метод

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

iClearFilter() публичный Метод

public iClearFilter ( )

iOpenPage() публичный Метод

public iOpenPage ( $url )

iOpenProductPage() публичный Метод

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

iSearchForProductsWithName() публичный Метод

public iSearchForProductsWithName ( $name )

iSelectVariant() публичный Метод

public iSelectVariant ( $variantName )

iSetItsOptionTo() публичный Метод

public iSetItsOptionTo ( $optionName, $optionValue )

iShouldBeAbleToAccessProduct() публичный Метод

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

iShouldBeNotifiedThatThereAreNoReviews() публичный Метод

iShouldBeNotifiedThatThisProductDoesNotHaveSufficientStock() публичный Метод

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

iShouldBeOnProductDetailedPage() публичный Метод

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

iShouldBeUnableToAddItToTheCart() публичный Метод

iShouldNotBeAbleToAccessProduct() публичный Метод

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

iShouldNotBeNotifiedThatThisProductDoesNotHaveSufficientStock() публичный Метод

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

iShouldNotSeeProduct() публичный Метод

public iShouldNotSeeProduct ( $productName )

iShouldNotSeeReviewTitled() публичный Метод

public iShouldNotSeeReviewTitled ( $title )

iShouldNotSeeReviewTitledInTheList() публичный Метод

iShouldSeeAMainImage() публичный Метод

iShouldSeeAsItsAverageRating() публичный Метод

public iShouldSeeAsItsAverageRating ( $rating )

iShouldSeeAttributes() публичный Метод

public iShouldSeeAttributes ( $count )

iShouldSeeEmptyListOfProducts() публичный Метод

iShouldSeeItIsOutOfStock() публичный Метод

iShouldSeeNumberOfProductReviewsInTheList() публичный Метод

iShouldSeeProduct() публичный Метод

public iShouldSeeProduct ( $productName )

iShouldSeeProductName() публичный Метод

public iShouldSeeProductName ( $name )

iShouldSeeProductReviews() публичный Метод

public iShouldSeeProductReviews ( $count )

iShouldSeeProductWithName() публичный Метод

public iShouldSeeProductWithName ( $name )

iShouldSeeProductsInTheList() публичный Метод

public iShouldSeeProductsInTheList ( $numberOfProducts )

iShouldSeeReviewsTitled() публичный Метод

public iShouldSeeReviewsTitled ( $reviews )

iShouldSeeTheProductAssociationWithProducts() публичный Метод

public iShouldSeeTheProductAssociationWithProducts ( $productAssociationName, array $products )
$products array

iShouldSeeTheProductAttributeWithValue() публичный Метод

public iShouldSeeTheProductAttributeWithValue ( $attributeName, $expectedAttribute )

iShouldSeeTheProductPrice() публичный Метод

public iShouldSeeTheProductPrice ( $price )

iShouldSeeTheProductWithPrice() публичный Метод

public iShouldSeeTheProductWithPrice ( $productName, $productPrice )

iViewSortedProductsFromTaxon() публичный Метод

public iViewSortedProductsFromTaxon ( $sortDirection, Sylius\Component\Core\Model\TaxonInterface $taxon )
$taxon Sylius\Component\Core\Model\TaxonInterface

theFirstAttributeShouldBe() публичный Метод

public theFirstAttributeShouldBe ( $name )

theFirstProductOnTheListShouldHaveName() публичный Метод

theLastAttributeShouldBe() публичный Метод

public theLastAttributeShouldBe ( $name )

theyShouldHaveOrderLikeAnd() публичный Метод

public theyShouldHaveOrderLikeAnd ( $productNames )

thisProductAverageRatingShouldBe() публичный Метод

public thisProductAverageRatingShouldBe ( Sylius\Component\Core\Model\ProductInterface $product, $averageRating )
$product Sylius\Component\Core\Model\ProductInterface