mirror of
https://github.com/moodle/moodle.git
synced 2025-02-22 10:57:20 +01:00
When searching using mock results (the 'global search expects the query' step), the result count is not correctly set. As a result, the page incorrectly reports that there are no results and doesn't correctly show the first page of multi-page results. Additionally, some of the core Behat tests can now be moved to use real searching with the simpledb engine, rather than using mock results at all. This gives better tests. Unfortunately it was not possible to move all of the core Behat tests and deprecate the mock step, because some of the tests are related to the UI for 'special' features searching by user or group, neither of which are supported by the simpledb engine.