From 24e56696e78d18fd2e4be9ea1dfdd41b3b14fe71 Mon Sep 17 00:00:00 2001 From: Jean-Yves Gaulier Date: Mon, 16 Dec 2019 18:15:43 +0100 Subject: [PATCH] PHRAS-2859_tests-do-corrupt-conf_4.1 fix test that overrides conf during install. --- .../Tests/Phrasea/Command/Setup/InstallTest.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/tests/Alchemy/Tests/Phrasea/Command/Setup/InstallTest.php b/tests/Alchemy/Tests/Phrasea/Command/Setup/InstallTest.php index f05831d94b..f8e0a8b5a1 100644 --- a/tests/Alchemy/Tests/Phrasea/Command/Setup/InstallTest.php +++ b/tests/Alchemy/Tests/Phrasea/Command/Setup/InstallTest.php @@ -12,6 +12,21 @@ use Alchemy\Phrasea\Core\Configuration\StructureTemplate; */ 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() { $input = $this->getMock('Symfony\Component\Console\Input\InputInterface');