MDL-60555 core_search: Change unit tests to use fake time
authorsam marshall <s.marshall@open.ac.uk>
Mon, 23 Oct 2017 17:09:10 +0000 (18:09 +0100)
committersam marshall <s.marshall@open.ac.uk>
Tue, 31 Oct 2017 14:48:09 +0000 (14:48 +0000)
commit82735dec4da08d9fa3dc5a15a986141d00fe1c8e
tree6215a57beaee4df8a783e66bc534234b42063a2d
parent849405177fd087b65baf42b9215d4d6e7eb661c0
MDL-60555 core_search: Change unit tests to use fake time

Using real time caused rare failures. I've changed it to use fake
measurement for the indexing timeouts, which were unit-tested.
search/classes/engine.php
search/classes/manager.php
search/tests/fixtures/mock_search_engine.php
search/tests/fixtures/testable_core_search.php
search/tests/manager_test.php