Bart\GitHook\CodeFreezeTest::testWhenBartFrozenRepoAndNoEnvVar PHP Method

testWhenBartFrozenRepoAndNoEnvVar() public method

    public function testWhenBartFrozenRepoAndNoEnvVar()
    {
        $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(['example', 'bart.git']);
        }, true);
        $freeze = new CodeFreeze();
        $freeze->run($this->head);
    }