framework/tests/integration/api/discussions
Alexander Skvortsov b6f0b01307
Fix relevance sort (#2773)
- Adds a field to QueryCriteria that determines whether the sort provided is the controller's default sort
- Set this field to true iff sort not in query params. Default it to false
- Override $sort if a new default sort has been set on search state, and the param is true.
- Add tests!
2021-04-11 22:21:56 -04:00
..
CreateTest.php Use flarum/testing for test infrastructure (#2545) 2021-03-07 16:32:41 -05:00
DeletionTest.php Use flarum/testing for test infrastructure (#2545) 2021-03-07 16:32:41 -05:00
ListTest.php Use flarum/testing for test infrastructure (#2545) 2021-03-07 16:32:41 -05:00
ListWithFulltextSearchTest.php Fix relevance sort (#2773) 2021-04-11 22:21:56 -04:00
ShowTest.php Use flarum/testing for test infrastructure (#2545) 2021-03-07 16:32:41 -05:00