Skip to content

Commit 06e6c93

Browse files
committed
fix znaménka
1 parent 4433c4d commit 06e6c93

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/Model/Indices/Create.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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);

src/Model/VersionProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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;

tests/SpameriTests/Elastic/Model/Indices/CreateTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)