PHP Класс spec\Sylius\Bundle\ResourceBundle\Doctrine\ODM\PHPCR\EventListener\DefaultParentListenerSpec

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

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

Метод Описание
it_is_initializable ( )
it_should_autocreate_and_set_the_parent_document ( Sylius\Bundle\ResourceBundle\Event\ResourceControllerEvent $event, ClassMetadata $documentMetadata, Doctrine\ODM\PHPCR\DocumentManagerInterface $documentManager, PHPCR\SessionInterface $session, PHPCR\NodeInterface $node )
it_should_return_early_if_force_is_false_and_subject_already_has_a_parent ( Sylius\Bundle\ResourceBundle\Event\ResourceControllerEvent $event, ClassMetadata $documentMetadata, Doctrine\ODM\PHPCR\DocumentManagerInterface $documentManager )
it_should_set_the_parent_document ( Sylius\Bundle\ResourceBundle\Event\ResourceControllerEvent $event, ClassMetadata $documentMetadata, Doctrine\ODM\PHPCR\DocumentManagerInterface $documentManager )
it_should_set_the_parent_document_if_force_is_true_and_the_parent_is_already_set ( Sylius\Bundle\ResourceBundle\Event\ResourceControllerEvent $event, ClassMetadata $documentMetadata, Doctrine\ODM\PHPCR\DocumentManagerInterface $documentManager )
it_should_throw_an_exception_if_no_parent_mapping_exists ( Sylius\Bundle\ResourceBundle\Event\ResourceControllerEvent $event, ClassMetadata $documentMetadata, Doctrine\ODM\PHPCR\DocumentManagerInterface $documentManager )
it_should_throw_an_exception_if_the_parent_does_not_exist_and_autocreate_is_false ( Sylius\Bundle\ResourceBundle\Event\ResourceControllerEvent $event, ClassMetadata $documentMetadata, Doctrine\ODM\PHPCR\DocumentManagerInterface $documentManager )
let ( Doctrine\ODM\PHPCR\DocumentManagerInterface $documentManager )

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

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

public it_is_initializable ( )

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

public it_should_autocreate_and_set_the_parent_document ( Sylius\Bundle\ResourceBundle\Event\ResourceControllerEvent $event, ClassMetadata $documentMetadata, Doctrine\ODM\PHPCR\DocumentManagerInterface $documentManager, PHPCR\SessionInterface $session, PHPCR\NodeInterface $node )
$event Sylius\Bundle\ResourceBundle\Event\ResourceControllerEvent
$documentMetadata Doctrine\ODM\PHPCR\Mapping\ClassMetadata
$documentManager Doctrine\ODM\PHPCR\DocumentManagerInterface
$session PHPCR\SessionInterface
$node PHPCR\NodeInterface

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

public it_should_return_early_if_force_is_false_and_subject_already_has_a_parent ( Sylius\Bundle\ResourceBundle\Event\ResourceControllerEvent $event, ClassMetadata $documentMetadata, Doctrine\ODM\PHPCR\DocumentManagerInterface $documentManager )
$event Sylius\Bundle\ResourceBundle\Event\ResourceControllerEvent
$documentMetadata Doctrine\ODM\PHPCR\Mapping\ClassMetadata
$documentManager Doctrine\ODM\PHPCR\DocumentManagerInterface

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

public it_should_set_the_parent_document ( Sylius\Bundle\ResourceBundle\Event\ResourceControllerEvent $event, ClassMetadata $documentMetadata, Doctrine\ODM\PHPCR\DocumentManagerInterface $documentManager )
$event Sylius\Bundle\ResourceBundle\Event\ResourceControllerEvent
$documentMetadata Doctrine\ODM\PHPCR\Mapping\ClassMetadata
$documentManager Doctrine\ODM\PHPCR\DocumentManagerInterface

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

public it_should_set_the_parent_document_if_force_is_true_and_the_parent_is_already_set ( Sylius\Bundle\ResourceBundle\Event\ResourceControllerEvent $event, ClassMetadata $documentMetadata, Doctrine\ODM\PHPCR\DocumentManagerInterface $documentManager )
$event Sylius\Bundle\ResourceBundle\Event\ResourceControllerEvent
$documentMetadata Doctrine\ODM\PHPCR\Mapping\ClassMetadata
$documentManager Doctrine\ODM\PHPCR\DocumentManagerInterface

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

public it_should_throw_an_exception_if_no_parent_mapping_exists ( Sylius\Bundle\ResourceBundle\Event\ResourceControllerEvent $event, ClassMetadata $documentMetadata, Doctrine\ODM\PHPCR\DocumentManagerInterface $documentManager )
$event Sylius\Bundle\ResourceBundle\Event\ResourceControllerEvent
$documentMetadata Doctrine\ODM\PHPCR\Mapping\ClassMetadata
$documentManager Doctrine\ODM\PHPCR\DocumentManagerInterface

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

public it_should_throw_an_exception_if_the_parent_does_not_exist_and_autocreate_is_false ( Sylius\Bundle\ResourceBundle\Event\ResourceControllerEvent $event, ClassMetadata $documentMetadata, Doctrine\ODM\PHPCR\DocumentManagerInterface $documentManager )
$event Sylius\Bundle\ResourceBundle\Event\ResourceControllerEvent
$documentMetadata Doctrine\ODM\PHPCR\Mapping\ClassMetadata
$documentManager Doctrine\ODM\PHPCR\DocumentManagerInterface

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

public let ( Doctrine\ODM\PHPCR\DocumentManagerInterface $documentManager )
$documentManager Doctrine\ODM\PHPCR\DocumentManagerInterface