diff options
| author | Mate Bartus <mate.bartus@gmail.com> | 2015-10-18 22:47:04 +0200 |
|---|---|---|
| committer | Marc Alexander <admin@m-a-styles.de> | 2015-10-22 21:29:52 +0200 |
| commit | 597297b169e2ae14684ad1f40c8e083be22b241d (patch) | |
| tree | 41a12be0ddf52aa186e23dc75c05b4ae11d1d9da /tests/functional/search/base.php | |
| parent | cc1a96a8045b6abe5b1234afb045912d53669fee (diff) | |
| download | forums-597297b169e2ae14684ad1f40c8e083be22b241d.tar forums-597297b169e2ae14684ad1f40c8e083be22b241d.tar.gz forums-597297b169e2ae14684ad1f40c8e083be22b241d.tar.bz2 forums-597297b169e2ae14684ad1f40c8e083be22b241d.tar.xz forums-597297b169e2ae14684ad1f40c8e083be22b241d.zip | |
[ticket/14044] Deduplicate the installers
PHPBB3-14044
Diffstat (limited to 'tests/functional/search/base.php')
| -rw-r--r-- | tests/functional/search/base.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/functional/search/base.php b/tests/functional/search/base.php index 1d37d748df..a3cac381d2 100644 --- a/tests/functional/search/base.php +++ b/tests/functional/search/base.php @@ -36,6 +36,8 @@ abstract class phpbb_functional_search_base extends phpbb_functional_test_case $this->login(); $this->admin_login(); + $this->create_search_index('\phpbb\search\fulltext_native'); + $post = $this->create_topic(2, 'Test Topic 1 foosubject', 'This is a test topic posted by the barsearch testing framework.'); $crawler = self::request('GET', 'adm/index.php?i=acp_search&mode=settings&sid=' . $this->sid); @@ -58,6 +60,7 @@ abstract class phpbb_functional_search_base extends phpbb_functional_test_case $this->delete_topic($post['topic_id']); $this->markTestSkipped("Search backend is not supported/running"); } + $this->create_search_index(); } @@ -72,14 +75,14 @@ abstract class phpbb_functional_search_base extends phpbb_functional_test_case $this->delete_topic($post['topic_id']); } - protected function create_search_index() + protected function create_search_index($backend = null) { $this->add_lang('acp/search'); $crawler = self::request( 'POST', 'adm/index.php?i=acp_search&mode=index&sid=' . $this->sid, array( - 'search_type' => $this->search_backend, + 'search_type' => ( ($backend === null) ? $this->search_backend : $backend ), 'action' => 'create', 'submit' => true, ) |
