Contao\CoreBundle\Test\Composer\ScriptHandlerTest::testGeneratesNoRandomSecretIfFileExistsArray PHP Méthode

testGeneratesNoRandomSecretIfFileExistsArray() public méthode

Tests that no secret is generated if at least one of multiple configuration files exists.
    public function testGeneratesNoRandomSecretIfFileExistsArray()
    {
        $this->assertRandomSecretDoesNotExist();
        touch(__DIR__ . '/../Fixtures/app/config/parameters.yml');
        $this->handler->generateRandomSecret($this->getComposerEvent(['incenteev-parameters' => [['file' => __DIR__ . '/../Fixtures/app/config/parameters.yml'], ['file' => __DIR__ . '/../Fixtures/app/config/test.yml']]]));
        unlink(__DIR__ . '/../Fixtures/app/config/parameters.yml');
        $this->assertRandomSecretDoesNotExist();
    }