diff options
| author | Yuriy Andamasov <yuriy@vyos.io> | 2026-05-23 13:18:06 +0300 |
|---|---|---|
| committer | Yuriy Andamasov <yuriy@vyos.io> | 2026-05-23 13:18:06 +0300 |
| commit | daa340590037e7a3d87f123078cc450dcbcfbca9 (patch) | |
| tree | 750dbd2010e0cf90cea60b1c0687ce44492f97d5 /src/__tests__/VyOSElasticModernFulltextStorageEngineTestCase.php | |
| parent | 249feeb0a6d43b8f98f1e4d48e5cc3f6edc19998 (diff) | |
| download | phorge-elasticsearch-modern-daa340590037e7a3d87f123078cc450dcbcfbca9.tar.gz phorge-elasticsearch-modern-daa340590037e7a3d87f123078cc450dcbcfbca9.zip | |
E2 fixup: use newEngine() helper in testGetDocumentUri tests
🤖 Generated by [robots](https://vyos.io)
Diffstat (limited to 'src/__tests__/VyOSElasticModernFulltextStorageEngineTestCase.php')
| -rw-r--r-- | src/__tests__/VyOSElasticModernFulltextStorageEngineTestCase.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/__tests__/VyOSElasticModernFulltextStorageEngineTestCase.php b/src/__tests__/VyOSElasticModernFulltextStorageEngineTestCase.php index 5ced477..3a96bac 100644 --- a/src/__tests__/VyOSElasticModernFulltextStorageEngineTestCase.php +++ b/src/__tests__/VyOSElasticModernFulltextStorageEngineTestCase.php @@ -67,16 +67,14 @@ final class VyOSElasticModernFulltextStorageEngineTestCase } public function testGetDocumentUri() { - $engine = id(new VyOSElasticModernFulltextStorageEngine()) - ->setVersion(7); + $engine = $this->newEngine()->setVersion(7); $uri = $engine->getDocumentUri('TASK', 'PHID-TASK-abc'); $this->assertEqual('/_doc/PHID-TASK-abc', $uri); } public function testGetDocumentUriIgnoresType() { // The typeless API does not encode the doc type in the URL. - $engine = id(new VyOSElasticModernFulltextStorageEngine()) - ->setVersion(7); + $engine = $this->newEngine()->setVersion(7); $uri_a = $engine->getDocumentUri('TASK', 'PHID-TASK-abc'); $uri_b = $engine->getDocumentUri('DREV', 'PHID-TASK-abc'); $this->assertEqual($uri_a, $uri_b); |
