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

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

Public Methods

Method Description
__construct ( Sylius\Behat\Page\Admin\ProductReview\IndexPageInterface $indexPage, Sylius\Behat\Page\Admin\ProductReview\UpdatePageInterface $updatePage, Sylius\Behat\Service\NotificationCheckerInterface $notificationChecker )
iAcceptTheProductReview ( Sylius\Component\Review\Model\ReviewInterface $productReview )
iChangeItsCommentTo ( $comment = null )
iChangeItsTitleTo ( $title = null )
iChooseAsItsRating ( $rating )
iDeleteTheProductReview ( Sylius\Component\Review\Model\ReviewInterface $productReview )
iRejectTheProductReview ( Sylius\Component\Review\Model\ReviewInterface $productReview )
iSaveMyChanges ( )
iShouldBeEditingReviewOfProduct ( $productName )
iShouldBeNotifiedThatElementIsRequired ( $element )
iShouldBeNotifiedThatItHasBeenSuccessfullyUpdated ( $action )
iShouldSeeReviewsInTheList ( $amount )
iShouldSeeTheCustomerSName ( $customerName )
iShouldSeeTheProductReviewTitleInTheList ( $title )
iWantToBrowseProductReviews ( )
iWantToModifyTheProductReview ( Sylius\Component\Review\Model\ReviewInterface $productReview )
thisProductReviewElementShouldBeValue ( $element, $value )
thisProductReviewRatingShouldBe ( $rating )
thisProductReviewShouldNoLongerExistInTheRegistry ( Sylius\Component\Review\Model\ReviewInterface $productReview )
thisProductReviewShouldStillHaveAComment ( Sylius\Component\Review\Model\ReviewInterface $productReview, $comment )
thisProductReviewStatusShouldBe ( Sylius\Component\Review\Model\ReviewInterface $productReview, $status )
thisProductReviewTitleShouldBeTitled ( Sylius\Component\Review\Model\ReviewInterface $productReview, $productReviewTitle )

Private Methods

Method Description
assertElementValue ( string $element, string $value )
assertFieldValidationMessage ( string $element, string $expectedMessage )

Method Details

__construct() public method

public __construct ( Sylius\Behat\Page\Admin\ProductReview\IndexPageInterface $indexPage, Sylius\Behat\Page\Admin\ProductReview\UpdatePageInterface $updatePage, Sylius\Behat\Service\NotificationCheckerInterface $notificationChecker )
$indexPage Sylius\Behat\Page\Admin\ProductReview\IndexPageInterface
$updatePage Sylius\Behat\Page\Admin\ProductReview\UpdatePageInterface
$notificationChecker Sylius\Behat\Service\NotificationCheckerInterface

iAcceptTheProductReview() public method

public iAcceptTheProductReview ( Sylius\Component\Review\Model\ReviewInterface $productReview )
$productReview Sylius\Component\Review\Model\ReviewInterface

iChangeItsCommentTo() public method

public iChangeItsCommentTo ( $comment = null )

iChangeItsTitleTo() public method

public iChangeItsTitleTo ( $title = null )

iChooseAsItsRating() public method

public iChooseAsItsRating ( $rating )

iDeleteTheProductReview() public method

public iDeleteTheProductReview ( Sylius\Component\Review\Model\ReviewInterface $productReview )
$productReview Sylius\Component\Review\Model\ReviewInterface

iRejectTheProductReview() public method

public iRejectTheProductReview ( Sylius\Component\Review\Model\ReviewInterface $productReview )
$productReview Sylius\Component\Review\Model\ReviewInterface

iSaveMyChanges() public method

public iSaveMyChanges ( )

iShouldBeEditingReviewOfProduct() public method

public iShouldBeEditingReviewOfProduct ( $productName )

iShouldBeNotifiedThatElementIsRequired() public method

iShouldBeNotifiedThatItHasBeenSuccessfullyUpdated() public method

iShouldSeeReviewsInTheList() public method

public iShouldSeeReviewsInTheList ( $amount )

iShouldSeeTheCustomerSName() public method

public iShouldSeeTheCustomerSName ( $customerName )

iShouldSeeTheProductReviewTitleInTheList() public method

iWantToBrowseProductReviews() public method

iWantToModifyTheProductReview() public method

public iWantToModifyTheProductReview ( Sylius\Component\Review\Model\ReviewInterface $productReview )
$productReview Sylius\Component\Review\Model\ReviewInterface

thisProductReviewElementShouldBeValue() public method

public thisProductReviewElementShouldBeValue ( $element, $value )

thisProductReviewRatingShouldBe() public method

public thisProductReviewRatingShouldBe ( $rating )

thisProductReviewShouldNoLongerExistInTheRegistry() public method

public thisProductReviewShouldNoLongerExistInTheRegistry ( Sylius\Component\Review\Model\ReviewInterface $productReview )
$productReview Sylius\Component\Review\Model\ReviewInterface

thisProductReviewShouldStillHaveAComment() public method

public thisProductReviewShouldStillHaveAComment ( Sylius\Component\Review\Model\ReviewInterface $productReview, $comment )
$productReview Sylius\Component\Review\Model\ReviewInterface

thisProductReviewStatusShouldBe() public method

public thisProductReviewStatusShouldBe ( Sylius\Component\Review\Model\ReviewInterface $productReview, $status )
$productReview Sylius\Component\Review\Model\ReviewInterface

thisProductReviewTitleShouldBeTitled() public method

public thisProductReviewTitleShouldBeTitled ( Sylius\Component\Review\Model\ReviewInterface $productReview, $productReviewTitle )
$productReview Sylius\Component\Review\Model\ReviewInterface