From c119627e84106ea7e98acedfe11b25df852b2ad1 Mon Sep 17 00:00:00 2001 From: Jean-Yves Gaulier Date: Mon, 16 Dec 2019 17:40:15 +0100 Subject: [PATCH] PHRAS-2814_missing-es-options-for-tests add options to a testfile that changes conf. todo : fix the test to backup/restore file after test --- .../Alchemy/Tests/Phrasea/Command/Setup/InstallTest.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/tests/Alchemy/Tests/Phrasea/Command/Setup/InstallTest.php b/tests/Alchemy/Tests/Phrasea/Command/Setup/InstallTest.php index 0e3c477b5c..f05831d94b 100644 --- a/tests/Alchemy/Tests/Phrasea/Command/Setup/InstallTest.php +++ b/tests/Alchemy/Tests/Phrasea/Command/Setup/InstallTest.php @@ -78,9 +78,12 @@ class InstallTest extends \PhraseanetTestCase case 'db-password': return $infoDb['database']['password']; break; - case 'yes': - return true; - break; + case 'es-host': + return 'localhost'; + case 'es-port': + return 9200; + case 'es-index': + return 'phrasea_test'; default: return ''; }