PhpGitHooks\Module\Shared\Tests\Infrastructure\CommandBusTrait::shouldHandleCommand PHP Method

shouldHandleCommand() protected method

protected shouldHandleCommand ( Bruli\EventBusBundle\CommandBus\CommandInterface $command )
$command Bruli\EventBusBundle\CommandBus\CommandInterface
    protected function shouldHandleCommand(CommandInterface $command)
    {
        $this->getCommandBus()->shouldReceive('handle')->once()->with((new SimilarTo())->compare($command));
    }