File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff 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 ()
You can’t perform that action at this time.
0 commit comments