Skip to content

Commit e772ca6

Browse files
committed
Fix php 5.3 compatibility
1 parent 55abe13 commit e772ca6

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Tests/Functional/MappingToElasticaTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,14 @@ public function testResetIndexAddsMappings()
3333
$this->assertArrayNotHasKey('store', $mapping['type']['properties']['field2']);
3434

3535
$type = $this->getType($client, 'type');
36-
$mapping = $type->getMapping()['type'];
37-
$this->assertEquals('parent', $mapping['_parent']['type']);
36+
$mapping = $type->getMapping();
37+
$this->assertEquals('parent', $mapping['type']['_parent']['type']);
3838

3939
$parent = $this->getType($client, 'parent');
40-
$mapping = $parent->getMapping()['parent'];
40+
$mapping = $parent->getMapping();
4141

42-
$this->assertEquals('my_analyzer', $mapping['index_analyzer']);
43-
$this->assertEquals('whitespace', $mapping['search_analyzer']);
42+
$this->assertEquals('my_analyzer', $mapping['type']['index_analyzer']);
43+
$this->assertEquals('whitespace', $mapping['type']['search_analyzer']);
4444
}
4545

4646
public function testResetType()

0 commit comments

Comments
 (0)