public function testWhenSuperUser()
{
$this->shmockAndDieselify('\\Bart\\GitHook\\GitHookSystemConfig', function ($config) {
$config->frozenRepoNames()->once()->return_value(['all']);
$config->envVarNameForPushUser()->once()->return_value(Option::fromValue('GITOSIS_USER'));
$config->superUserNames()->once()->return_value(['braynard']);
}, true);
// simulate push from John
putenv('GITOSIS_USER=braynard');
$freeze = new CodeFreeze();
$freeze->run($this->head);
}