aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorrxu <rxu@mail.ru>2016-10-20 01:11:14 +0700
committerrxu <rxu@mail.ru>2016-10-21 01:23:45 +0700
commit244ff0f969f197c7e816604185ede8ea6f892d9b (patch)
tree5cf620ee8633361befc201f7021d06675352fe87 /tests
parenteca10dc08f157f27b9a399a132dce7b5fca7c927 (diff)
downloadforums-244ff0f969f197c7e816604185ede8ea6f892d9b.tar
forums-244ff0f969f197c7e816604185ede8ea6f892d9b.tar.gz
forums-244ff0f969f197c7e816604185ede8ea6f892d9b.tar.bz2
forums-244ff0f969f197c7e816604185ede8ea6f892d9b.tar.xz
forums-244ff0f969f197c7e816604185ede8ea6f892d9b.zip
[ticket/14830] Fix ACP search control functional tests
PHPBB3-14830
Diffstat (limited to 'tests')
-rw-r--r--tests/functional/search/base.php10
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',