PHP Class spec\Sylius\Bundle\CoreBundle\EventListener\CustomerReviewsDeleteListenerSpec

Author: Mateusz Zalewski ([email protected])
Author: Grzegorz Sadowski ([email protected])
Inheritance: extends PhpSpec\ObjectBehavior
ファイルを表示 Open project: sylius/sylius

Public Methods

Method Description
it_is_initializable ( )
it_removes_soft_deleted_customer_reviews_and_recalculates_their_product_ratings ( $reviewerReviewsRemover, Symfony\Component\EventDispatcher\GenericEvent $event, Sylius\Component\Review\Model\ReviewerInterface $author )
it_throws_exception_if_event_subject_is_not_customer_object ( Symfony\Component\EventDispatcher\GenericEvent $event )
let ( ReviewerReviewsRemover $reviewerReviewsRemover )

Method Details

it_is_initializable() public method

public it_is_initializable ( )

it_removes_soft_deleted_customer_reviews_and_recalculates_their_product_ratings() public method

public it_removes_soft_deleted_customer_reviews_and_recalculates_their_product_ratings ( $reviewerReviewsRemover, Symfony\Component\EventDispatcher\GenericEvent $event, Sylius\Component\Review\Model\ReviewerInterface $author )
$event Symfony\Component\EventDispatcher\GenericEvent
$author Sylius\Component\Review\Model\ReviewerInterface

it_throws_exception_if_event_subject_is_not_customer_object() public method

public it_throws_exception_if_event_subject_is_not_customer_object ( Symfony\Component\EventDispatcher\GenericEvent $event )
$event Symfony\Component\EventDispatcher\GenericEvent

let() public method

public let ( ReviewerReviewsRemover $reviewerReviewsRemover )
$reviewerReviewsRemover Sylius\Bundle\CoreBundle\Remover\ReviewerReviewsRemover