File tree Expand file tree Collapse file tree 2 files changed +32
-17
lines changed
tests/Elasticsearch/Tests Expand file tree Collapse file tree 2 files changed +32
-17
lines changed Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ /**
4
+ * Class ClientTest
5
+ *
6
+ * @category Tests
7
+ * @package Elasticsearch
8
+ * @subpackage Tests
9
+ * @author Zachary Tong <zachary.tong@elasticsearch.com>
10
+ * @license http://www.apache.org/licenses/LICENSE-2.0 Apache2
11
+ * @link http://elasticsearch.org
12
+ */
13
+ class ClientIntegrationTests extends \PHPUnit_Framework_TestCase
14
+ {
15
+ public function testCustomQueryParams ()
16
+ {
17
+ $ params = array ();
18
+
19
+ $ client = Elasticsearch \ClientBuilder::create ()->setHosts ([$ _SERVER ['ES_TEST_HOST ' ]])->build ();
20
+
21
+ $ getParams = array (
22
+ 'index ' => 'test ' ,
23
+ 'type ' => 'test ' ,
24
+ 'id ' => 1 ,
25
+ 'parent ' => 'abc ' ,
26
+ 'custom ' => array ('customToken ' => 'abc ' , 'otherToken ' => 123 ),
27
+ 'client ' => ['ignore ' => 400 ]
28
+ );
29
+ $ exists = $ client ->exists ($ getParams );
30
+ }
31
+
32
+ }
Original file line number Diff line number Diff line change @@ -32,23 +32,6 @@ public function testConstructorIllegalPort()
32
32
$ client = Elasticsearch \ClientBuilder::create ()->setHosts (['localhost:abc ' ])->build ();
33
33
}
34
34
35
- public function testCustomQueryParams ()
36
- {
37
- $ params = array ();
38
-
39
- $ client = Elasticsearch \ClientBuilder::create ()->setHosts ([$ _SERVER ['ES_TEST_HOST ' ]])->build ();
40
-
41
- $ getParams = array (
42
- 'index ' => 'test ' ,
43
- 'type ' => 'test ' ,
44
- 'id ' => 1 ,
45
- 'parent ' => 'abc ' ,
46
- 'custom ' => array ('customToken ' => 'abc ' , 'otherToken ' => 123 ),
47
- 'client ' => ['ignore ' => 400 ]
48
- );
49
- $ exists = $ client ->exists ($ getParams );
50
- }
51
-
52
35
public function testFromConfig ()
53
36
{
54
37
$ params = [
You can’t perform that action at this time.
0 commit comments