summaryrefslogtreecommitdiff
path: root/src/__tests__/VyOSElasticModernFulltextStorageEngineTestCase.php
diff options
context:
space:
mode:
authorYuriy Andamasov <yuriy@andamasov.com>2026-05-23 14:23:39 +0300
committerGitHub <noreply@github.com>2026-05-23 14:23:39 +0300
commitb630182d8e0509d4a807623dd0b3976c81f77f39 (patch)
tree8d7d90a03b09cc21f0d80f7038cc1da88779dbb9 /src/__tests__/VyOSElasticModernFulltextStorageEngineTestCase.php
parentc1a972d45d60f5d721156d7dfb7a958f2e7b9abc (diff)
parentf945e302f79086c6ea99bd45d414fe6bccefb9d4 (diff)
downloadphorge-elasticsearch-modern-b630182d8e0509d4a807623dd0b3976c81f77f39.tar.gz
phorge-elasticsearch-modern-b630182d8e0509d4a807623dd0b3976c81f77f39.zip
Merge pull request #9 from vyos/task/e6-setservice
E6: Wire setService() + identifier + host glue
Diffstat (limited to 'src/__tests__/VyOSElasticModernFulltextStorageEngineTestCase.php')
-rw-r--r--src/__tests__/VyOSElasticModernFulltextStorageEngineTestCase.php21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/__tests__/VyOSElasticModernFulltextStorageEngineTestCase.php b/src/__tests__/VyOSElasticModernFulltextStorageEngineTestCase.php
index e3daab4..9f08f8c 100644
--- a/src/__tests__/VyOSElasticModernFulltextStorageEngineTestCase.php
+++ b/src/__tests__/VyOSElasticModernFulltextStorageEngineTestCase.php
@@ -236,4 +236,25 @@ final class VyOSElasticModernFulltextStorageEngineTestCase
$this->assertEqual('date', $mappings['properties']['lastModified']['type']);
}
+ public function testEngineIdentifier() {
+ $engine = $this->newEngine();
+ $this->assertEqual('elasticsearch-modern', $engine->getEngineIdentifier());
+ }
+
+ public function testHostType() {
+ $engine = $this->newEngine();
+ $host = $engine->getHostType();
+ $this->assertTrue($host instanceof VyOSElasticModernHost);
+ }
+
+ public function testGetTextFieldType() {
+ $engine = $this->newEngine()->setVersion(7);
+ $this->assertEqual('text', $engine->getTextFieldType());
+ }
+
+ public function testGetTimestampField() {
+ $engine = $this->newEngine()->setVersion(7);
+ $this->assertEqual('lastModified', $engine->getTimestampField());
+ }
+
}