summaryrefslogtreecommitdiff
path: root/src/__tests__/VyOSElasticModernFulltextStorageEngineTestCase.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/__tests__/VyOSElasticModernFulltextStorageEngineTestCase.php')
-rw-r--r--src/__tests__/VyOSElasticModernFulltextStorageEngineTestCase.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/__tests__/VyOSElasticModernFulltextStorageEngineTestCase.php b/src/__tests__/VyOSElasticModernFulltextStorageEngineTestCase.php
index 3a96bac..e3cbef5 100644
--- a/src/__tests__/VyOSElasticModernFulltextStorageEngineTestCase.php
+++ b/src/__tests__/VyOSElasticModernFulltextStorageEngineTestCase.php
@@ -80,4 +80,14 @@ final class VyOSElasticModernFulltextStorageEngineTestCase
$this->assertEqual($uri_a, $uri_b);
}
+ public function testGetSearchUri() {
+ $engine = id(new VyOSElasticModernFulltextStorageEngine())
+ ->setVersion(7);
+ $this->assertEqual(
+ '/_search',
+ $engine->getSearchUri(array('TASK', 'DREV')));
+ $this->assertEqual('/_search', $engine->getSearchUri(array('USER')));
+ $this->assertEqual('/_search', $engine->getSearchUri(array()));
+ }
+
}