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

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

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

Метод Описание
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 )

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

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

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() публичный Метод

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

public it_is_initializable ( )

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

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 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 it_throws_exception_if_there_is_no_logged_in_customer ( Sylius\Component\Customer\Context\CustomerContextInterface $customerContext )
$customerContext Sylius\Component\Customer\Context\CustomerContextInterface

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

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