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

Author: Daniel Leech ([email protected])
Inheritance: extends PhpSpec\ObjectBehavior
Mostra file Open project: sylius/sylius

Public Methods

Method Description
it_is_initializable ( )
it_should_auto_increment_the_name_if_a_conflict_exists ( Doctrine\ODM\PHPCR\DocumentManagerInterface $documentManager, Sylius\Bundle\ResourceBundle\Event\ResourceControllerEvent $event, ClassMetadata $metadata, PHPCR\NodeInterface $node )
it_should_retain_the_original_name_when_no_conflict_exists ( Doctrine\ODM\PHPCR\DocumentManagerInterface $documentManager, Sylius\Bundle\ResourceBundle\Event\ResourceControllerEvent $event, ClassMetadata $metadata, PHPCR\NodeInterface $node )
it_throws_an_exception_when_the_generator_type_is_not_parent ( Doctrine\ODM\PHPCR\DocumentManagerInterface $documentManager, Sylius\Bundle\ResourceBundle\Event\ResourceControllerEvent $event, ClassMetadata $metadata )
let ( Doctrine\ODM\PHPCR\DocumentManagerInterface $documentManager )

Method Details

it_is_initializable() public method

public it_is_initializable ( )

it_should_auto_increment_the_name_if_a_conflict_exists() public method

public it_should_auto_increment_the_name_if_a_conflict_exists ( Doctrine\ODM\PHPCR\DocumentManagerInterface $documentManager, Sylius\Bundle\ResourceBundle\Event\ResourceControllerEvent $event, ClassMetadata $metadata, PHPCR\NodeInterface $node )
$documentManager Doctrine\ODM\PHPCR\DocumentManagerInterface
$event Sylius\Bundle\ResourceBundle\Event\ResourceControllerEvent
$metadata Doctrine\ODM\PHPCR\Mapping\ClassMetadata
$node PHPCR\NodeInterface

it_should_retain_the_original_name_when_no_conflict_exists() public method

public it_should_retain_the_original_name_when_no_conflict_exists ( Doctrine\ODM\PHPCR\DocumentManagerInterface $documentManager, Sylius\Bundle\ResourceBundle\Event\ResourceControllerEvent $event, ClassMetadata $metadata, PHPCR\NodeInterface $node )
$documentManager Doctrine\ODM\PHPCR\DocumentManagerInterface
$event Sylius\Bundle\ResourceBundle\Event\ResourceControllerEvent
$metadata Doctrine\ODM\PHPCR\Mapping\ClassMetadata
$node PHPCR\NodeInterface

it_throws_an_exception_when_the_generator_type_is_not_parent() public method

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

let() public method

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