From a24b7d1bdd9f671fb899b6134e51566c1873f026 Mon Sep 17 00:00:00 2001 From: Zachary Tong Date: Thu, 20 Jul 2017 11:20:10 -0400 Subject: [PATCH] [TEST] fix handling of format for Cat tests --- tests/Elasticsearch/Tests/YamlRunnerTest.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/Elasticsearch/Tests/YamlRunnerTest.php b/tests/Elasticsearch/Tests/YamlRunnerTest.php index 97ad52163..30a566ae8 100644 --- a/tests/Elasticsearch/Tests/YamlRunnerTest.php +++ b/tests/Elasticsearch/Tests/YamlRunnerTest.php @@ -303,7 +303,9 @@ public function operationDo($operation, $lastOperationResult, &$context, $testNa // TODO remove this after cat testing situation resolved if ($caller instanceof Elasticsearch\Namespaces\CatNamespace) { - $endpointParams->format = 'text'; + if (!isset($endpointParams->format)) { + $endpointParams->format = 'text'; + } } // Exist* methods have to be manually 'unwrapped' into true/false for async