mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-24 10:23:17 +00:00
fix test
This commit is contained in:
@@ -36,6 +36,13 @@ class InstallTest extends \PhraseanetTestCase
|
|||||||
$password = 'sup4ssw0rd';
|
$password = 'sup4ssw0rd';
|
||||||
$serverName = 'http://phrasea.io';
|
$serverName = 'http://phrasea.io';
|
||||||
$dataPath = '/tmp';
|
$dataPath = '/tmp';
|
||||||
|
$storagePaths = [
|
||||||
|
'subdefs' => $dataPath,
|
||||||
|
'download' => $dataPath,
|
||||||
|
'lazaret' => $dataPath,
|
||||||
|
'caption' => $dataPath,
|
||||||
|
'worker_tmp_files' => $dataPath
|
||||||
|
];
|
||||||
$template = 'fr-simple';
|
$template = 'fr-simple';
|
||||||
|
|
||||||
$infoDb = Yaml::parse(file_get_contents(__DIR__ . '/../../../../../../resources/hudson/InstallDBs.yml'));
|
$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())
|
self::$DI['cli']['phraseanet.installer']->expects($this->once())
|
||||||
->method('install')
|
->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'];
|
$structureTemplate = self::$DI['cli']['phraseanet.structure-template'];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user