Skip to content

Commit d6add3e

Browse files
authored
PHPLIB-1750 Relax search index management spec test to allow the extra 'field' property (#1812)
1 parent 0a2472b commit d6add3e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/SpecTests/SearchIndexSpecTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public function testCreateAndListSearchIndexes(): void
5555

5656
$this->assertCount(1, $indexes);
5757
$this->assertSame($name, $indexes[0]->name);
58-
$this->assertSameDocument($mapping, $indexes[0]->latestDefinition);
58+
$this->assertFalse($indexes[0]->latestDefinition['mappings']['dynamic']);
5959
}
6060

6161
/**
@@ -81,7 +81,7 @@ public function testCreateMultipleIndexesInBatch(): void
8181
foreach ($names as $key => $name) {
8282
$index = $indexes[$key];
8383
$this->assertSame($name, $index->name);
84-
$this->assertSameDocument($mapping, $index->latestDefinition);
84+
$this->assertFalse($index->latestDefinition['mappings']['dynamic']);
8585
}
8686
}
8787

@@ -138,7 +138,7 @@ public function testUpdateSearchIndex(): void
138138

139139
$this->assertCount(1, $indexes);
140140
$this->assertSame($name, $indexes[0]->name);
141-
$this->assertSameDocument($mapping, $indexes[0]->latestDefinition);
141+
$this->assertTrue($indexes[0]->latestDefinition['mappings']['dynamic']);
142142
}
143143

144144
/**

0 commit comments

Comments
 (0)