public it_executes_post_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_post_endpoint_for_matching_commands(Extension $extension, Command $command, ServiceLocator $serviceLocator)
{
$extension->expands($command)->willReturn(true);
$extension->post($command, $serviceLocator)->shouldBeCalled();
$this->register($extension);
$this->post($command, $serviceLocator);
}