aboutsummaryrefslogtreecommitdiffstats
path: root/tests/functional
diff options
context:
space:
mode:
authorOpenShift guest <dachebodt@gmail.com>2013-04-13 13:56:02 -0400
committerOpenShift guest <dachebodt@gmail.com>2013-04-13 13:56:02 -0400
commit2c910999b090502cf6a3ac2add68de763ea897ca (patch)
treee3a4726ba717809a1499e07774998b32a50f2909 /tests/functional
parent84c815a12e7c2c816035e3b05e8ea7c88f0f4534 (diff)
downloadforums-2c910999b090502cf6a3ac2add68de763ea897ca.tar
forums-2c910999b090502cf6a3ac2add68de763ea897ca.tar.gz
forums-2c910999b090502cf6a3ac2add68de763ea897ca.tar.bz2
forums-2c910999b090502cf6a3ac2add68de763ea897ca.tar.xz
forums-2c910999b090502cf6a3ac2add68de763ea897ca.zip
[ticket/11458] Fix test
PHPBB-11458
Diffstat (limited to 'tests/functional')
-rw-r--r--tests/functional/extension_permission_lang_test.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/functional/extension_permission_lang_test.php b/tests/functional/extension_permission_lang_test.php
index c3d136de49..1368a628d8 100644
--- a/tests/functional/extension_permission_lang_test.php
+++ b/tests/functional/extension_permission_lang_test.php
@@ -34,7 +34,14 @@ class phpbb_functional_extension_permission_lang_test extends phpbb_functional_t
// User permissions
$crawler = $this->request('GET', 'adm/index.php?i=acp_permissions&icat=16&mode=setting_user_global&sid=' . $this->sid);
$this->assert_response_success();
- $this->assertContains('Can view foo', $this->client->getResponse()->getContent());
+
+ // Select admin
+ $form = $crawler->selectButton($this->lang('SUBMIT'))->form();
+ $data = array('username[0]' => 'admin');
+ $form->setValues($data);
+ $crawler = $this->client->submit($form);
+ $this->assert_response_success();
+ $this->assertContains('Can view foo', $crawler->filter('body')->text());
}
public function permissions_data()