PhpGitHooks\Module\Configuration\Tests\Stub\ConfigStub::createEnabled PHP Метод

createEnabled() публичный статический Метод

public static createEnabled ( ) : Config
Результат PhpGitHooks\Module\Configuration\Domain\Config
    public static function createEnabled()
    {
        return self::create(PreCommitStub::createAllEnabled(), CommitMsgStub::createEnabled(), PrePushStub::createAllEnabled());
    }

Usage Example

 /**
  * @test
  */
 public function itShouldNotMakeAnyQuestions()
 {
     $data = ConfigurationArrayTransformer::transform(PreCommitStub::createAllEnabled(), CommitMsgStub::createEnabled(), PrePushStub::createAllEnabled());
     $this->shouldReadConfigurationData(ConfigStub::createEnabled());
     $this->shouldCopyPreCommitHook();
     $this->shouldCopyCommitMsgHook();
     $this->shouldCopyPrePushHook();
     $this->shouldWriteConfigurationData($data);
     $command = new ConfigurationProcessorCommand($this->getIOInterface());
     $this->configurationProcessorCommandHandler->handle($command);
 }