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

Author: Mateusz Zalewski ([email protected])
Inheritance: extends PhpSpec\ObjectBehavior
显示文件 Open project: sylius/sylius

Public Methods

Method Description
it_is_initializable ( )
it_throws_exception_if_event_subject_is_not_order ( Symfony\Component\EventDispatcher\GenericEvent $event )
it_uses_assigner_to_assign_customer_ip_to_order ( Symfony\Component\EventDispatcher\GenericEvent $event, Sylius\Bundle\CoreBundle\Assigner\IpAssignerInterface $ipAssigner, Sylius\Component\Core\Model\OrderInterface $order, Request $request, Symfony\Component\HttpFoundation\RequestStack $requestStack )
let ( Sylius\Bundle\CoreBundle\Assigner\IpAssignerInterface $ipAssigner, Symfony\Component\HttpFoundation\RequestStack $requestStack )

Method Details

it_is_initializable() public method

public it_is_initializable ( )

it_throws_exception_if_event_subject_is_not_order() public method

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

it_uses_assigner_to_assign_customer_ip_to_order() public method

public it_uses_assigner_to_assign_customer_ip_to_order ( Symfony\Component\EventDispatcher\GenericEvent $event, Sylius\Bundle\CoreBundle\Assigner\IpAssignerInterface $ipAssigner, Sylius\Component\Core\Model\OrderInterface $order, Request $request, Symfony\Component\HttpFoundation\RequestStack $requestStack )
$event Symfony\Component\EventDispatcher\GenericEvent
$ipAssigner Sylius\Bundle\CoreBundle\Assigner\IpAssignerInterface
$order Sylius\Component\Core\Model\OrderInterface
$request Symfony\Component\HttpFoundation\Request
$requestStack Symfony\Component\HttpFoundation\RequestStack

let() public method

public let ( Sylius\Bundle\CoreBundle\Assigner\IpAssignerInterface $ipAssigner, Symfony\Component\HttpFoundation\RequestStack $requestStack )
$ipAssigner Sylius\Bundle\CoreBundle\Assigner\IpAssignerInterface
$requestStack Symfony\Component\HttpFoundation\RequestStack