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

fix test that overrides conf during install.
This commit is contained in:
Jean-Yves Gaulier
2019-12-16 18:15:43 +01:00
parent 915e7bcd32
commit 24e56696e7

View File

@@ -12,6 +12,21 @@ use Alchemy\Phrasea\Core\Configuration\StructureTemplate;
*/ */
class InstallTest extends \PhraseanetTestCase class InstallTest extends \PhraseanetTestCase
{ {
private $bkp = null;
public function setUp()
{
parent::setUp();
$this->bkp = self::$DI['app']['conf']->get('main');
}
public function tearDown()
{
self::$DI['app']['conf']->set('main', $this->bkp);
parent::tearDown();
}
public function testRunWithoutProblems() public function testRunWithoutProblems()
{ {
$input = $this->getMock('Symfony\Component\Console\Input\InputInterface'); $input = $this->getMock('Symfony\Component\Console\Input\InputInterface');