PhpGitHooks\Module\Configuration\Tests\Behaviour\CommitMsgProcessorTest::itShouldDisableHook PHP Метод

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

public itShouldDisableHook ( )
    public function itShouldDisableHook()
    {
        $this->shouldAsk(HookQuestions::COMMIT_MSG_HOOK, HookQuestions::DEFAULT_TOOL_ANSWER, 'n');
        $commitMsg = $this->commitMsgProcessor->process(CommitMsgStub::setUndefined(), $this->getIOInterface());
        $this->assertFalse($commitMsg->isUndefined());
        $this->assertFalse($commitMsg->isEnabled());
        $this->assertNull($commitMsg->getRegularExpression()->value());
    }
CommitMsgProcessorTest