PHP Class spec\Sylius\Bundle\ResourceBundle\Doctrine\ODM\PHPCR\EventListener\DefaultParentListenerSpec

Author: Daniel Leech ([email protected])
Inheritance: extends PhpSpec\ObjectBehavior
Afficher le fichier Open project: sylius/sylius

Méthodes publiques

Méthode Description
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 )

Method Details

it_is_initializable() public méthode

public it_is_initializable ( )

it_should_autocreate_and_set_the_parent_document() public méthode

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 méthode

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 méthode

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 méthode

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 méthode

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 méthode

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 méthode

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