PHP Класс spec\Sylius\Bundle\CoreBundle\Context\SessionAndChannelBasedCartContextSpec

Автор: Anna Walasek ([email protected])
Наследование: extends PhpSpec\ObjectBehavior
Показать файл Открыть проект

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

Метод Описание
it_implements_cart_context_interface ( )
it_is_initializable ( )
it_returns_cart_based_on_id_stored_in_session_and_current_channel ( Symfony\Component\HttpFoundation\Session\SessionInterface $session, Sylius\Component\Core\Repository\OrderRepositoryInterface $orderRepository, Sylius\Component\Channel\Context\ChannelContextInterface $channelContext, Sylius\Component\Core\Model\ChannelInterface $channel, Sylius\Component\Order\Model\OrderInterface $cart )
it_throws_cart_not_found_exception_and_removes_id_from_session_when_cart_was_not_found ( Symfony\Component\HttpFoundation\Session\SessionInterface $session, Sylius\Component\Core\Repository\OrderRepositoryInterface $orderRepository, Sylius\Component\Channel\Context\ChannelContextInterface $channelContext, Sylius\Component\Core\Model\ChannelInterface $channel )
it_throws_cart_not_found_exception_if_channel_was_not_found ( Sylius\Component\Channel\Context\ChannelContextInterface $channelContext )
it_throws_cart_not_found_exception_if_session_key_does_not_exist ( Symfony\Component\HttpFoundation\Session\SessionInterface $session, Sylius\Component\Channel\Context\ChannelContextInterface $channelContext, Sylius\Component\Core\Model\ChannelInterface $channel )
let ( Symfony\Component\HttpFoundation\Session\SessionInterface $session, Sylius\Component\Core\Repository\OrderRepositoryInterface $orderRepository, Sylius\Component\Channel\Context\ChannelContextInterface $channelContext )

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

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

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

public it_is_initializable ( )

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

public it_returns_cart_based_on_id_stored_in_session_and_current_channel ( Symfony\Component\HttpFoundation\Session\SessionInterface $session, Sylius\Component\Core\Repository\OrderRepositoryInterface $orderRepository, Sylius\Component\Channel\Context\ChannelContextInterface $channelContext, Sylius\Component\Core\Model\ChannelInterface $channel, Sylius\Component\Order\Model\OrderInterface $cart )
$session Symfony\Component\HttpFoundation\Session\SessionInterface
$orderRepository Sylius\Component\Core\Repository\OrderRepositoryInterface
$channelContext Sylius\Component\Channel\Context\ChannelContextInterface
$channel Sylius\Component\Core\Model\ChannelInterface
$cart Sylius\Component\Order\Model\OrderInterface

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

public it_throws_cart_not_found_exception_and_removes_id_from_session_when_cart_was_not_found ( Symfony\Component\HttpFoundation\Session\SessionInterface $session, Sylius\Component\Core\Repository\OrderRepositoryInterface $orderRepository, Sylius\Component\Channel\Context\ChannelContextInterface $channelContext, Sylius\Component\Core\Model\ChannelInterface $channel )
$session Symfony\Component\HttpFoundation\Session\SessionInterface
$orderRepository Sylius\Component\Core\Repository\OrderRepositoryInterface
$channelContext Sylius\Component\Channel\Context\ChannelContextInterface
$channel Sylius\Component\Core\Model\ChannelInterface

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

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

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

public it_throws_cart_not_found_exception_if_session_key_does_not_exist ( Symfony\Component\HttpFoundation\Session\SessionInterface $session, Sylius\Component\Channel\Context\ChannelContextInterface $channelContext, Sylius\Component\Core\Model\ChannelInterface $channel )
$session Symfony\Component\HttpFoundation\Session\SessionInterface
$channelContext Sylius\Component\Channel\Context\ChannelContextInterface
$channel Sylius\Component\Core\Model\ChannelInterface

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

public let ( Symfony\Component\HttpFoundation\Session\SessionInterface $session, Sylius\Component\Core\Repository\OrderRepositoryInterface $orderRepository, Sylius\Component\Channel\Context\ChannelContextInterface $channelContext )
$session Symfony\Component\HttpFoundation\Session\SessionInterface
$orderRepository Sylius\Component\Core\Repository\OrderRepositoryInterface
$channelContext Sylius\Component\Channel\Context\ChannelContextInterface