From 6024d881e68bb02589e3e7b8b920b53e44f68d66 Mon Sep 17 00:00:00 2001 From: aynsix Date: Wed, 8 Apr 2020 19:36:11 +0300 Subject: [PATCH] fix test --- .../Alchemy/Tests/Phrasea/Command/Setup/InstallTest.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tests/Alchemy/Tests/Phrasea/Command/Setup/InstallTest.php b/tests/Alchemy/Tests/Phrasea/Command/Setup/InstallTest.php index 5f94dbdb87..e1b20fe3fb 100644 --- a/tests/Alchemy/Tests/Phrasea/Command/Setup/InstallTest.php +++ b/tests/Alchemy/Tests/Phrasea/Command/Setup/InstallTest.php @@ -36,6 +36,13 @@ class InstallTest extends \PhraseanetTestCase $password = 'sup4ssw0rd'; $serverName = 'http://phrasea.io'; $dataPath = '/tmp'; + $storagePaths = [ + 'subdefs' => $dataPath, + 'download' => $dataPath, + 'lazaret' => $dataPath, + 'caption' => $dataPath, + 'worker_tmp_files' => $dataPath + ]; $template = 'fr-simple'; $infoDb = Yaml::parse(file_get_contents(__DIR__ . '/../../../../../../resources/hudson/InstallDBs.yml')); @@ -115,7 +122,7 @@ class InstallTest extends \PhraseanetTestCase self::$DI['cli']['phraseanet.installer']->expects($this->once()) ->method('install') - ->with($email, $password, $this->isInstanceOf('Doctrine\DBAL\Driver\Connection'), $serverName, ['subdefs' => $dataPath], $this->isInstanceOf('Doctrine\DBAL\Driver\Connection'), $template, $this->anything()); + ->with($email, $password, $this->isInstanceOf('Doctrine\DBAL\Driver\Connection'), $serverName, $storagePaths, $this->isInstanceOf('Doctrine\DBAL\Driver\Connection'), $template, $this->anything()); $structureTemplate = self::$DI['cli']['phraseanet.structure-template'];