mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-18 15:33:15 +00:00
PHRAS-2859_tests-do-corrupt-conf_4.1
fix test that overrides conf during install.
This commit is contained in:
@@ -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');
|
||||||
|
Reference in New Issue
Block a user