Inheritance: extends Bart\GitHook\GitHookAction
Beispiel #1
0
 /**
  * @expectedException \Bart\GitHook\GitHookException
  * @expectedExceptionMessage All repositories are frozen
  */
 public function testWhenAllFrozenRepoAndNoEnvVarConfigured()
 {
     $this->shmockAndDieselify('\\Bart\\GitHook\\GitHookSystemConfig', function ($config) {
         $config->envVarNameForPushUser()->once()->return_value(Option::fromValue(null));
         // This should not be called because env var name is None
         $config->superUserNames()->never();
         $config->frozenRepoNames()->once()->return_value(['all']);
     }, true);
     $freeze = new CodeFreeze();
     $freeze->run($this->head);
 }