PHRAS-2859_tests-do-corrupt-conf_4.1

fix : configuration.yml is not modified by unit-tests anymore
This commit is contained in:
Jean-Yves Gaulier
2019-12-12 16:53:15 +01:00
parent 5a500b2f02
commit 915e7bcd32
12 changed files with 169 additions and 19 deletions

View File

@@ -132,9 +132,11 @@ class ExportTest extends \PhraseanetAuthenticatedWebTestCase
{
$app = $this->getApplication();
$bkp = $app['conf']->get('registry');
if (!$app['conf']->get(['registry', 'ftp', 'ftp-enabled'])) {
$app['conf']->set(['registry', 'ftp', 'ftp-enabled'], true);
self::$GV_activeFTP = true;
self::$GV_activeFTP = true;
}
/** @var User $user */
@@ -158,6 +160,8 @@ class ExportTest extends \PhraseanetAuthenticatedWebTestCase
$this->assertArrayHasKey('message', $datas);
$this->assertTrue($datas['success']);
unset($response, $datas);
$app['conf']->set('registry', $bkp);
}
/**