Skip to content

Commit

Permalink
MDL-66326 Global search: Unit test fix for Oracle
Browse files Browse the repository at this point in the history
  • Loading branch information
stronk7 committed Aug 29, 2019
1 parent 9e93b2f commit 78168d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions search/engine/simpledb/tests/engine_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -380,14 +380,14 @@ public function test_deleted_contexts_and_courses() {
/**
* Check the contents of the index.
*
* @param string $searchword Word to search for within the content field
* @param string $searchword Word to match within the content field
* @param string[] $expected Array of expected result titles, in alphabetical order
* @throws dml_exception
*/
protected function assert_raw_index_contents(string $searchword, array $expected) {
global $DB;
$results = $DB->get_records_select('search_simpledb_index',
$DB->sql_like('content', '?'), ['%' . $searchword . '%'], 'id, title');
$DB->sql_like('content', '?'), ['%' . $searchword . '%'], "id, {$DB->sql_order_by_text('title')}");
$titles = array_map(function($x) {
return $x->title;
}, $results);
Expand Down

0 comments on commit 78168d7

Please sign in to comment.