Skip to content

Commit 46f9d59

Browse files
committed
[TEST] fix handling of format for Cat tests
1 parent 50e5b1c commit 46f9d59

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/Elasticsearch/Tests/YamlRunnerTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,9 @@ public function operationDo($operation, $lastOperationResult, &$context, $testNa
307307

308308
// TODO remove this after cat testing situation resolved
309309
if ($caller instanceof Elasticsearch\Namespaces\CatNamespace) {
310-
$endpointParams->format = 'text';
310+
if (!isset($endpointParams->format)) {
311+
$endpointParams->format = 'text';
312+
}
311313
}
312314

313315
// Exist* methods have to be manually 'unwrapped' into true/false for async

0 commit comments

Comments
 (0)