diff options
| author | Yuriy Andamasov <yuriy@andamasov.com> | 2026-05-23 14:23:01 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-05-23 14:23:01 +0300 |
| commit | ebc6bcf1466f7555988df9063dd86e834de1b9aa (patch) | |
| tree | 2ea6a96352b6055b5541c9206bd47000153f54f8 /src/__tests__/VyOSElasticModernFulltextStorageEngineTestCase.php | |
| parent | 556b5a5faa958adb9956750a8b88c74c43db6fe5 (diff) | |
| parent | 13ca7a3fdb812467b57c6c4d33e13f69cf3cdcc3 (diff) | |
| download | phorge-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.php | 9 |
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())); + } + } |
