Spec\Dumplie\SharedKernel\Application\Command\ExtensionRegistrySpec::it_executes_pre_endpoint_for_matching_commands PHP Метод

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

public it_executes_pre_endpoint_for_matching_commands ( Dumplie\SharedKernel\Application\Command\Extension $extension, Dumplie\SharedKernel\Application\Command\Command $command, Dumplie\SharedKernel\Application\ServiceLocator $serviceLocator )
$extension Dumplie\SharedKernel\Application\Command\Extension
$command Dumplie\SharedKernel\Application\Command\Command
$serviceLocator Dumplie\SharedKernel\Application\ServiceLocator
    function it_executes_pre_endpoint_for_matching_commands(Extension $extension, Command $command, ServiceLocator $serviceLocator)
    {
        $extension->expands($command)->willReturn(true);
        $extension->pre($command, $serviceLocator)->shouldBeCalled();
        $this->register($extension);
        $this->pre($command, $serviceLocator);
    }