diff options
| author | Yuriy Andamasov <yuriy@vyos.io> | 2026-05-23 13:23:14 +0300 |
|---|---|---|
| committer | Yuriy Andamasov <yuriy@vyos.io> | 2026-05-23 13:23:14 +0300 |
| commit | 67d619a782eef8df6437525c45a63c9485c13a6a (patch) | |
| tree | e5a11c374fc4f8d8b3d30e144648a39d3de016f2 /src/__tests__/VyOSElasticModernFulltextStorageEngineTestCase.php | |
| parent | a529a40ec8569a7010df4965c4e7fff9e81eb125 (diff) | |
| download | phorge-elasticsearch-modern-67d619a782eef8df6437525c45a63c9485c13a6a.tar.gz phorge-elasticsearch-modern-67d619a782eef8df6437525c45a63c9485c13a6a.zip | |
E4 fixup: use newEngine() helper in testBuildTypeFilter 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 95558a1..ff4ade8 100644 --- a/src/__tests__/VyOSElasticModernFulltextStorageEngineTestCase.php +++ b/src/__tests__/VyOSElasticModernFulltextStorageEngineTestCase.php @@ -90,8 +90,7 @@ final class VyOSElasticModernFulltextStorageEngineTestCase } public function testBuildTypeFilter() { - $engine = id(new VyOSElasticModernFulltextStorageEngine()) - ->setVersion(7); + $engine = $this->newEngine()->setVersion(7); $filter = $engine->buildTypeFilter(array('TASK', 'DREV')); $expected = array( 'terms' => array( @@ -106,8 +105,7 @@ final class VyOSElasticModernFulltextStorageEngineTestCase // for normalizing "no types specified" to "all indexable types" // before calling this method. This matches the bundled engine's // pattern (executeSearch() normalizes before URL construction). - $engine = id(new VyOSElasticModernFulltextStorageEngine()) - ->setVersion(7); + $engine = $this->newEngine()->setVersion(7); $filter = $engine->buildTypeFilter(array()); $this->assertEqual( array('terms' => array('documentType' => array())), |
