This commit is contained in:
aynsix
2020-04-08 19:36:11 +03:00
parent 7e242f81af
commit 6024d881e6

View File

@@ -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'];