We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c60ce38 + 6b9a77b commit ee8b33fCopy full SHA for ee8b33f
changes.txt
@@ -1,5 +1,8 @@
1
CHANGES
2
3
+2014-07-12
4
+ - Be able to configure ES host/port via ENV var in test env
5
+
6
2014-07-07
7
- Fix FunstionScore Query random_score without seed bug. #647
8
test/lib/Elastica/Test/Base.php
@@ -8,7 +8,10 @@ class Base extends \PHPUnit_Framework_TestCase
{
9
protected function _getClient()
10
11
- return new Client();
+ return new Client(array(
12
+ 'host' => getenv('ES_HOST') ?: 'localhost',
13
+ 'port' => getenv('ES_PORT') ?: 9200,
14
+ ));
15
}
16
17
/**
0 commit comments