File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -32,11 +32,15 @@ public function testResetIndexAddsMappings()
3232 $ this ->assertTrue ($ mapping ['type ' ]['properties ' ]['field1 ' ]['store ' ]);
3333 $ this ->assertArrayNotHasKey ('store ' , $ mapping ['type ' ]['properties ' ]['field2 ' ]);
3434
35+ $ type = $ this ->getType ($ client , 'type ' );
36+ $ mapping = $ type ->getMapping ()['type ' ];
37+ $ this ->assertEquals ('parent ' , $ mapping ['_parent ' ]['type ' ]);
38+
3539 $ parent = $ this ->getType ($ client , 'parent ' );
36- $ mapping = $ parent ->getMapping ();
40+ $ mapping = $ parent ->getMapping ()[ ' parent ' ] ;
3741
38- $ this ->assertEquals ('my_analyzer ' , $ mapping ['parent ' ][ ' index_analyzer ' ]);
39- $ this ->assertEquals ('whitespace ' , $ mapping ['parent ' ][ ' search_analyzer ' ]);
42+ $ this ->assertEquals ('my_analyzer ' , $ mapping ['index_analyzer ' ]);
43+ $ this ->assertEquals ('whitespace ' , $ mapping ['search_analyzer ' ]);
4044 }
4145
4246 public function testResetType ()
You can’t perform that action at this time.
0 commit comments