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.php6
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);