-
Notifications
You must be signed in to change notification settings - Fork 970
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[TEST] move integration test to dedicated test file
Related to #625
- Loading branch information
1 parent
c3cacd7
commit 71ccfc1
Showing
2 changed files
with
34 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<?php | ||
|
||
declare(strict_types = 1); | ||
|
||
/** | ||
* Class ClientTest | ||
* | ||
* @category Tests | ||
* @package Elasticsearch | ||
* @subpackage Tests | ||
* @author Zachary Tong <[email protected]> | ||
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache2 | ||
* @link http://elasticsearch.org | ||
*/ | ||
class ClientIntegrationTests extends \PHPUnit_Framework_TestCase | ||
{ | ||
public function testCustomQueryParams() | ||
{ | ||
$params = array(); | ||
|
||
$client = Elasticsearch\ClientBuilder::create()->setHosts([$_SERVER['ES_TEST_HOST']])->build(); | ||
|
||
$getParams = array( | ||
'index' => 'test', | ||
'type' => 'test', | ||
'id' => 1, | ||
'parent' => 'abc', | ||
'custom' => array('customToken' => 'abc', 'otherToken' => 123), | ||
'client' => ['ignore' => 400] | ||
); | ||
$exists = $client->exists($getParams); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters