Gush\Tests\Subscriber\GitDirectorySubscriberTest::throws_user_exception_when_not_in_git_directory PHP Method

throws_user_exception_when_not_in_git_directory() public method

    public function throws_user_exception_when_not_in_git_directory()
    {
        $command = new GitDirectoryCommand();
        $commandEvent = new ConsoleCommandEvent($command, $this->createMock('Symfony\\Component\\Console\\Input\\InputInterface'), $this->createMock('Symfony\\Component\\Console\\Output\\OutputInterface'));
        $helper = $this->getGitHelper(false);
        $subscriber = new GitDirectorySubscriber($helper);
        $this->setExpectedException(UserException::class);
        $subscriber->initialize($commandEvent);
    }