diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/functional/search/base.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/functional/search/base.php b/tests/functional/search/base.php index d41e3ec925..7c201169df 100644 --- a/tests/functional/search/base.php +++ b/tests/functional/search/base.php @@ -38,7 +38,7 @@ abstract class phpbb_functional_search_base extends phpbb_functional_test_case $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); + $crawler = self::request('GET', 'adm/index.php?i=acp_search&mode=settings&sid=' . $this->sid . '&hash=' . generate_link_hash('acp_search')); $form = $crawler->selectButton('Submit')->form(); $values = $form->getValues(); @@ -75,11 +75,11 @@ abstract class phpbb_functional_search_base extends phpbb_functional_test_case protected function create_search_index() { $this->add_lang('acp/search'); - $crawler = self::request('GET', 'adm/index.php?i=acp_search&mode=index&sid=' . $this->sid); + $crawler = self::request('GET', 'adm/index.php?i=acp_search&mode=index&sid=' . $this->sid . '&hash=' . generate_link_hash('acp_search')); $form_values = $crawler->selectButton('Delete index')->form()->getValues(); $crawler = self::request( 'POST', - 'adm/index.php?i=acp_search&mode=index&sid=' . $this->sid, + 'adm/index.php?i=acp_search&mode=index&sid=' . $this->sid . '&hash=' . generate_link_hash('acp_search'), array( 'search_type' => $this->search_backend, 'action' => 'create', @@ -94,11 +94,11 @@ abstract class phpbb_functional_search_base extends phpbb_functional_test_case protected function delete_search_index() { $this->add_lang('acp/search'); - $crawler = self::request('GET', 'adm/index.php?i=acp_search&mode=index&sid=' . $this->sid); + $crawler = self::request('GET', 'adm/index.php?i=acp_search&mode=index&sid=' . $this->sid . '&hash=' . generate_link_hash('acp_search')); $form_values = $crawler->selectButton('Delete index')->form()->getValues(); $crawler = self::request( 'POST', - 'adm/index.php?i=acp_search&mode=index&sid=' . $this->sid, + 'adm/index.php?i=acp_search&mode=index&sid=' . $this->sid . '&hash=' . generate_link_hash('acp_search'), array( 'search_type' => $this->search_backend, 'action' => 'delete', |