Contao\CoreBundle\Test\Composer\ScriptHandlerTest::testGeneratesNoRandomSecretIfFileExists PHP Method

testGeneratesNoRandomSecretIfFileExists() public method

Tests that no secret is generated if the configuration file exists.
    public function testGeneratesNoRandomSecretIfFileExists()
    {
        $this->assertRandomSecretDoesNotExist();
        touch(__DIR__ . '/../Fixtures/app/config/parameters.yml');
        $this->handler->generateRandomSecret($this->getComposerEvent(['incenteev-parameters' => ['file' => __DIR__ . '/../Fixtures/app/config/parameters.yml']]));
        unlink(__DIR__ . '/../Fixtures/app/config/parameters.yml');
        $this->assertRandomSecretDoesNotExist();
    }