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
This commit is contained in:
Jean-Yves Gaulier
2019-12-16 17:40:15 +01:00
parent 2969fa7e9c
commit c119627e84

View File

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