Bart\GitHook\CodeFreezeTest::testWhenNotFrozenRepoAndNoEnvVarEither PHP Method

testWhenNotFrozenRepoAndNoEnvVarEither() public method

    public function testWhenNotFrozenRepoAndNoEnvVarEither()
    {
        $this->shmockAndDieselify('\\Bart\\GitHook\\GitHookSystemConfig', function ($config) {
            $config->frozenRepoNames()->once()->return_value(['example.git']);
            $config->envVarNameForPushUser()->once()->return_value(Option::fromValue(null));
            // This should not be called because env var name is None
            $config->superUserNames()->never();
        }, true);
        $freeze = new CodeFreeze();
        $freeze->run($this->head);
    }