PHP Class spec\Sylius\Bundle\CoreBundle\Context\CustomerAndChannelBasedCartContextSpec

Author: Mateusz Zalewski ([email protected])
Inheritance: extends PhpSpec\ObjectBehavior
Exibir arquivo Open project: sylius/sylius

Public Methods

Method Description
it_does_nothing_if_channel_could_not_be_found ( Sylius\Component\Channel\Context\ChannelContextInterface $channelContext )
it_implements_cart_context_interface ( )
it_is_initializable ( )
it_returns_uncompleted_cart_for_currently_logged_user ( Sylius\Component\Core\Model\ChannelInterface $channel, Sylius\Component\Channel\Context\ChannelContextInterface $channelContext, Sylius\Component\Customer\Context\CustomerContextInterface $customerContext, Sylius\Component\Core\Model\CustomerInterface $customer, Sylius\Component\Core\Model\OrderInterface $order, Sylius\Component\Core\Repository\OrderRepositoryInterface $orderRepository )
it_throws_exception_if_no_cart_can_be_provided ( Sylius\Component\Core\Model\ChannelInterface $channel, Sylius\Component\Channel\Context\ChannelContextInterface $channelContext, Sylius\Component\Customer\Context\CustomerContextInterface $customerContext, Sylius\Component\Core\Model\CustomerInterface $customer, Sylius\Component\Core\Repository\OrderRepositoryInterface $orderRepository )
it_throws_exception_if_there_is_no_logged_in_customer ( Sylius\Component\Customer\Context\CustomerContextInterface $customerContext )
let ( Sylius\Component\Customer\Context\CustomerContextInterface $customerContext, Sylius\Component\Channel\Context\ChannelContextInterface $channelContext, Sylius\Component\Core\Repository\OrderRepositoryInterface $orderRepository )

Method Details

it_does_nothing_if_channel_could_not_be_found() public method

public it_does_nothing_if_channel_could_not_be_found ( Sylius\Component\Channel\Context\ChannelContextInterface $channelContext )
$channelContext Sylius\Component\Channel\Context\ChannelContextInterface

it_implements_cart_context_interface() public method

it_is_initializable() public method

public it_is_initializable ( )

it_returns_uncompleted_cart_for_currently_logged_user() public method

public it_returns_uncompleted_cart_for_currently_logged_user ( Sylius\Component\Core\Model\ChannelInterface $channel, Sylius\Component\Channel\Context\ChannelContextInterface $channelContext, Sylius\Component\Customer\Context\CustomerContextInterface $customerContext, Sylius\Component\Core\Model\CustomerInterface $customer, Sylius\Component\Core\Model\OrderInterface $order, Sylius\Component\Core\Repository\OrderRepositoryInterface $orderRepository )
$channel Sylius\Component\Core\Model\ChannelInterface
$channelContext Sylius\Component\Channel\Context\ChannelContextInterface
$customerContext Sylius\Component\Customer\Context\CustomerContextInterface
$customer Sylius\Component\Core\Model\CustomerInterface
$order Sylius\Component\Core\Model\OrderInterface
$orderRepository Sylius\Component\Core\Repository\OrderRepositoryInterface

it_throws_exception_if_no_cart_can_be_provided() public method

public it_throws_exception_if_no_cart_can_be_provided ( Sylius\Component\Core\Model\ChannelInterface $channel, Sylius\Component\Channel\Context\ChannelContextInterface $channelContext, Sylius\Component\Customer\Context\CustomerContextInterface $customerContext, Sylius\Component\Core\Model\CustomerInterface $customer, Sylius\Component\Core\Repository\OrderRepositoryInterface $orderRepository )
$channel Sylius\Component\Core\Model\ChannelInterface
$channelContext Sylius\Component\Channel\Context\ChannelContextInterface
$customerContext Sylius\Component\Customer\Context\CustomerContextInterface
$customer Sylius\Component\Core\Model\CustomerInterface
$orderRepository Sylius\Component\Core\Repository\OrderRepositoryInterface

it_throws_exception_if_there_is_no_logged_in_customer() public method

public it_throws_exception_if_there_is_no_logged_in_customer ( Sylius\Component\Customer\Context\CustomerContextInterface $customerContext )
$customerContext Sylius\Component\Customer\Context\CustomerContextInterface

let() public method

public let ( Sylius\Component\Customer\Context\CustomerContextInterface $customerContext, Sylius\Component\Channel\Context\ChannelContextInterface $channelContext, Sylius\Component\Core\Repository\OrderRepositoryInterface $orderRepository )
$customerContext Sylius\Component\Customer\Context\CustomerContextInterface
$channelContext Sylius\Component\Channel\Context\ChannelContextInterface
$orderRepository Sylius\Component\Core\Repository\OrderRepositoryInterface