diff options
author | Marc Alexander <admin@m-a-styles.de> | 2013-07-11 17:34:34 -0400 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2013-07-11 17:34:34 -0400 |
commit | 2667c3a527b3a2362370583446231391a4354565 (patch) | |
tree | 541bd9410d67aa26c3afc10f8548bfa6cc196b25 /tests/functional | |
parent | dc4687501a16b2c50a9ebfcb9f941a02d9572764 (diff) | |
download | forums-2667c3a527b3a2362370583446231391a4354565.tar forums-2667c3a527b3a2362370583446231391a4354565.tar.gz forums-2667c3a527b3a2362370583446231391a4354565.tar.bz2 forums-2667c3a527b3a2362370583446231391a4354565.tar.xz forums-2667c3a527b3a2362370583446231391a4354565.zip |
[ticket/11548] Use new static methods for request and submit
PHPBB3-11548
Diffstat (limited to 'tests/functional')
-rw-r--r-- | tests/functional/ucp_groups_test.php | 9 |
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()); } } |