aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2013-07-11 17:34:34 -0400
committerMarc Alexander <admin@m-a-styles.de>2013-07-11 17:34:34 -0400
commit2667c3a527b3a2362370583446231391a4354565 (patch)
tree541bd9410d67aa26c3afc10f8548bfa6cc196b25
parentMerge branch 'develop-olympus' of https://github.com/phpbb/phpbb3 into ticket... (diff)
downloadphpbb-2667c3a527b3a2362370583446231391a4354565.tar.gz
phpbb-2667c3a527b3a2362370583446231391a4354565.tar.bz2
phpbb-2667c3a527b3a2362370583446231391a4354565.zip
[ticket/11548] Use new static methods for request and submit
PHPBB3-11548
-rw-r--r--tests/functional/ucp_groups_test.php9
1 files changed, 4 insertions, 5 deletions
diff --git a/tests/functional/ucp_groups_test.php b/tests/functional/ucp_groups_test.php
index 7c50f7bb24..0d9ef22798 100644
--- a/tests/functional/ucp_groups_test.php
+++ b/tests/functional/ucp_groups_test.php
@@ -24,7 +24,7 @@ class phpbb_functional_ucp_groups_test extends phpbb_functional_common_groups_te
{
$this->add_lang('acp/board');
- $crawler = $this->request('GET', 'adm/index.php?i=board&mode=avatar&sid=' . $this->sid);
+ $crawler = self::request('GET', 'adm/index.php?i=board&mode=avatar&sid=' . $this->sid);
// Check the default entries we should have
$this->assertContains($this->lang('ALLOW_REMOTE'), $crawler->text());
$this->assertContains($this->lang('ALLOW_AVATARS'), $crawler->text());
@@ -35,7 +35,7 @@ class phpbb_functional_ucp_groups_test extends phpbb_functional_common_groups_te
$form['config[allow_avatar_local]']->select(1);
$form['config[allow_avatar_remote]']->select(1);
$form['config[allow_avatar_remote_upload]']->select(1);
- $crawler = $this->client->submit($form);
+ $crawler = self::submit($form);
$this->assertContains($this->lang('CONFIG_UPDATED'), $crawler->text());
}
@@ -61,11 +61,10 @@ class phpbb_functional_ucp_groups_test extends phpbb_functional_common_groups_te
$this->add_lang(array('ucp', 'acp/groups'));
$this->enable_all_avatars();
- $crawler = $this->request('GET', $this->get_url() . '&g=5&sid=' . $this->sid);
- $this->assert_response_success();
+ $crawler = self::request('GET', $this->get_url() . '&g=5&sid=' . $this->sid);
$form = $crawler->selectButton($this->lang('SUBMIT'))->form();
$form[$form_name]->setValue($input);
- $crawler = $this->client->submit($form);
+ $crawler = self::submit($form);
$this->assertContains($this->lang($expected), $crawler->text());
}
}