File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -170,7 +170,7 @@ public function testSearchWithSortBy()
170
170
$ expectedResult1 = [
171
171
'title ' => 'Cheapest book ever. ' ,
172
172
'author ' => 'Jane ' ,
173
- 'price ' => 0 .01 ,
173
+ 'price ' => 99 .01 ,
174
174
'stock ' => 55 ,
175
175
'location ' => new GeoLocation (10.9190500 , 52.0504100 ),
176
176
];
@@ -196,7 +196,8 @@ public function testSearchWithSortBy()
196
196
->sortBy ('price ' )
197
197
->search ('book ' );
198
198
199
- $ this ->assertEquals ($ expectedResult1 ['title ' ], $ result ->getDocuments ()[0 ]->title );
200
- $ this ->assertEquals ($ expectedResult2 ['title ' ], $ result ->getDocuments ()[1 ]->title );
199
+ $ this ->assertEquals ($ expectedResult1 ['title ' ], $ result ->getDocuments ()[1 ]->title );
200
+ $ this ->assertEquals ($ expectedResult2 ['title ' ], $ result ->getDocuments ()[0 ]->title );
201
+ $ this ->assertEquals ($ expectedResult3 ['title ' ], $ result ->getDocuments ()[2 ]->title );
201
202
}
202
203
}
You can’t perform that action at this time.
0 commit comments