aboutsummaryrefslogtreecommitdiffstats
path: root/tests/functional/forgot_password_test.php
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2013-05-28 14:55:04 +0200
committerJoas Schilling <nickvergessen@gmx.de>2013-05-28 14:55:04 +0200
commit467c4d62c44a32a1a60bed2e2a2519b10cdebd33 (patch)
treeff255cbbb902af4744594961f55729f6ec3e24c6 /tests/functional/forgot_password_test.php
parent6d9888be6504dee73341832c7de3d085f09da983 (diff)
downloadforums-467c4d62c44a32a1a60bed2e2a2519b10cdebd33.tar
forums-467c4d62c44a32a1a60bed2e2a2519b10cdebd33.tar.gz
forums-467c4d62c44a32a1a60bed2e2a2519b10cdebd33.tar.bz2
forums-467c4d62c44a32a1a60bed2e2a2519b10cdebd33.tar.xz
forums-467c4d62c44a32a1a60bed2e2a2519b10cdebd33.zip
[ticket/develop/11568] Do not directly access $client from tests
PHPBB3-11568
Diffstat (limited to 'tests/functional/forgot_password_test.php')
-rw-r--r--tests/functional/forgot_password_test.php7
1 files changed, 1 insertions, 6 deletions
diff --git a/tests/functional/forgot_password_test.php b/tests/functional/forgot_password_test.php
index bfb4616d64..7c5f27c07e 100644
--- a/tests/functional/forgot_password_test.php
+++ b/tests/functional/forgot_password_test.php
@@ -27,18 +27,13 @@ class phpbb_functional_forgot_password_test extends phpbb_functional_test_case
$this->admin_login();
$this->add_lang('ucp');
$crawler = $this->request('GET', 'adm/index.php?sid=' . $this->sid . '&i=acp_board&mode=security');
- $this->assertEquals(200, $this->client->getResponse()->getStatus());
- $content = $this->client->getResponse()->getContent();
- $this->assertNotContains('Fatal error:', $content);
- $this->assertNotContains('Notice:', $content);
- $this->assertNotContains('[phpBB Debug]', $content);
$form = $crawler->selectButton('Submit')->form();
$values = $form->getValues();
$values["config[allow_password_reset]"] = 0;
$form->setValues($values);
- $crawler = $this->client->submit($form);
+ $crawler = $this->submit($form);
$this->logout();