File tree Expand file tree Collapse file tree
tests/SpameriTests/Elastic/Model/Indices Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ public function execute(
4040
4141 if (
4242 isset ($ parameters ['mappings ' ]['properties ' ])
43- && $ this ->versionProvider ->provide () <= \Spameri \ElasticQuery \Response \Result \Version::ELASTIC_VERSION_ID_7
43+ && $ this ->versionProvider ->provide () < \Spameri \ElasticQuery \Response \Result \Version::ELASTIC_VERSION_ID_7
4444 ) {
4545 foreach ($ parameters ['mappings ' ]['properties ' ] as $ fieldName => $ field ) {
4646 $ this ->replaceKeywordInOlderVersion ($ field );
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ class VersionProvider
99
1010
1111 public function __construct (
12- int $ versionNumber = \Spameri \ElasticQuery \Response \Result \Version::ELASTIC_VERSION_ID_24
12+ int $ versionNumber = \Spameri \ElasticQuery \Response \Result \Version::ELASTIC_VERSION_ID_7
1313 )
1414 {
1515 $ this ->versionNumber = $ versionNumber ;
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ public function testProcess(): void
3131 );
3232 $ response = $ getMapping ->execute (\SpameriTests \Elastic \Config::INDEX_CREATE );
3333
34- if ($ versionProvider ->provide () <= \Spameri \ElasticQuery \Response \Result \Version::ELASTIC_VERSION_ID_7 ) {
34+ if ($ versionProvider ->provide () < \Spameri \ElasticQuery \Response \Result \Version::ELASTIC_VERSION_ID_7 ) {
3535 \Tester \Assert::true (
3636 isset ($ response [\SpameriTests \Elastic \Config::INDEX_CREATE ]['mappings ' ][\SpameriTests \Elastic \Config::INDEX_CREATE ])
3737 );
@@ -73,7 +73,7 @@ public function testProcess(): void
7373 $ existingMapping ['properties ' ]['season ' ]['properties ' ]['number ' ]['type ' ]
7474 );
7575 \Tester \Assert::same (
76- \Spameri \Elastic \Model \ValidateMapping \AllowedValues::TYPE_KEYWORD ,
76+ \Spameri \Elastic \Model \ValidateMapping \AllowedValues::TYPE_TEXT ,
7777 $ existingMapping ['properties ' ]['story ' ]['properties ' ]['description ' ]['type ' ]
7878 );
7979 }
You can’t perform that action at this time.
0 commit comments