Bart\GitHook\CodeFreezeTest::testWhenAllFrozenRepoAndNoEnvVarConfigured PHP Method

testWhenAllFrozenRepoAndNoEnvVarConfigured() public method

    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);
    }