[ticket/12683] Fix test

PHPBB3-12683
This commit is contained in:
rubencm 2021-04-09 19:45:15 +02:00 committed by Ruben Calvo
parent f4977853be
commit 1cef5f83a0
No known key found for this signature in database
5 changed files with 7 additions and 4 deletions

View file

@ -133,6 +133,9 @@ class create_search_index extends database_task
$this->phpbb_dispatcher,
$container->get('language'),
$this->user,
SEARCH_RESULTS_TABLE,
SEARCH_WORDLIST_TABLE,
SEARCH_WORDMATCH_TABLE,
$this->phpbb_root_path,
$this->php_ext
);

View file

@ -124,7 +124,7 @@ class state_helper
/**
* @param int $counter
*
* @throws \phpbb\search\exception\no_action_in_progress_exception If there is no action in progress
* @throws no_action_in_progress_exception If there is no action in progress
*/
public function update_counter(int $counter): void
{

View file

@ -40,6 +40,6 @@ class phpbb_search_mysql_test extends phpbb_search_common_test_case
$this->db = $this->new_dbal();
$phpbb_dispatcher = new phpbb_mock_event_dispatcher();
$class = self::get_search_wrapper('\phpbb\search\backend\fulltext_mysql');
$this->search = new $class($config, $this->db, $phpbb_dispatcher, $language, $user, $phpbb_root_path, $phpEx);
$this->search = new $class($config, $this->db, $phpbb_dispatcher, $language, $user, SEARCH_RESULTS_TABLE, $phpbb_root_path, $phpEx);
}
}

View file

@ -38,7 +38,7 @@ class phpbb_search_native_test extends phpbb_search_test_case
$class = self::get_search_wrapper('\phpbb\search\backend\fulltext_native');
$config['fulltext_native_min_chars'] = 2;
$config['fulltext_native_max_chars'] = 14;
$this->search = new $class($config, $this->db, $phpbb_dispatcher, $language, $user, $phpbb_root_path, $phpEx);
$this->search = new $class($config, $this->db, $phpbb_dispatcher, $language, $user, SEARCH_RESULTS_TABLE, SEARCH_WORDLIST_TABLE, SEARCH_WORDMATCH_TABLE, $phpbb_root_path, $phpEx);
}
public function keywords()

View file

@ -40,6 +40,6 @@ class phpbb_search_postgres_test extends phpbb_search_common_test_case
$this->db = $this->new_dbal();
$phpbb_dispatcher = new phpbb_mock_event_dispatcher();
$class = self::get_search_wrapper('\phpbb\search\backend\fulltext_postgres');
$this->search = new $class($config, $this->db, $phpbb_dispatcher, $language, $user, $phpbb_root_path, $phpEx);
$this->search = new $class($config, $this->db, $phpbb_dispatcher, $language, $user, SEARCH_RESULTS_TABLE, $phpbb_root_path, $phpEx);
}
}