summaryrefslogtreecommitdiff
path: root/src/__tests__/VyOSElasticModernFulltextStorageEngineTestCase.php
diff options
context:
space:
mode:
authorYuriy Andamasov <yuriy@andamasov.com>2026-05-23 14:23:01 +0300
committerGitHub <noreply@github.com>2026-05-23 14:23:01 +0300
commitebc6bcf1466f7555988df9063dd86e834de1b9aa (patch)
tree2ea6a96352b6055b5541c9206bd47000153f54f8 /src/__tests__/VyOSElasticModernFulltextStorageEngineTestCase.php
parent556b5a5faa958adb9956750a8b88c74c43db6fe5 (diff)
parent13ca7a3fdb812467b57c6c4d33e13f69cf3cdcc3 (diff)
downloadphorge-elasticsearch-modern-ebc6bcf1466f7555988df9063dd86e834de1b9aa.tar.gz
phorge-elasticsearch-modern-ebc6bcf1466f7555988df9063dd86e834de1b9aa.zip
Merge pull request #6 from vyos/task/e3-getsearchuri
E3: Add getSearchUri() helper
Diffstat (limited to 'src/__tests__/VyOSElasticModernFulltextStorageEngineTestCase.php')
-rw-r--r--src/__tests__/VyOSElasticModernFulltextStorageEngineTestCase.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/__tests__/VyOSElasticModernFulltextStorageEngineTestCase.php b/src/__tests__/VyOSElasticModernFulltextStorageEngineTestCase.php
index 3a96bac..1762d32 100644
--- a/src/__tests__/VyOSElasticModernFulltextStorageEngineTestCase.php
+++ b/src/__tests__/VyOSElasticModernFulltextStorageEngineTestCase.php
@@ -80,4 +80,13 @@ final class VyOSElasticModernFulltextStorageEngineTestCase
$this->assertEqual($uri_a, $uri_b);
}
+ public function testGetSearchUri() {
+ $engine = $this->newEngine()->setVersion(7);
+ $this->assertEqual(
+ '/_search',
+ $engine->getSearchUri(array('TASK', 'DREV')));
+ $this->assertEqual('/_search', $engine->getSearchUri(array('USER')));
+ $this->assertEqual('/_search', $engine->getSearchUri(array()));
+ }
+
}