aboutsummaryrefslogtreecommitdiffstats
path: root/tests/functional
diff options
context:
space:
mode:
authorOleg Pudeyev <oleg@bsdpower.com>2012-11-18 14:15:23 -0500
committerOleg Pudeyev <oleg@bsdpower.com>2012-11-18 14:15:23 -0500
commit440c66267ef768888617c211c7f05a5fd25e2378 (patch)
treef3f7c427489f2e4c2e23f387bd08f48249c546e1 /tests/functional
parentf4fedfe95bdebe276563e9718cf3f3480dc2b8b9 (diff)
downloadforums-440c66267ef768888617c211c7f05a5fd25e2378.tar
forums-440c66267ef768888617c211c7f05a5fd25e2378.tar.gz
forums-440c66267ef768888617c211c7f05a5fd25e2378.tar.bz2
forums-440c66267ef768888617c211c7f05a5fd25e2378.tar.xz
forums-440c66267ef768888617c211c7f05a5fd25e2378.zip
[ticket/11202] Add response assertions to file upload functional test.
PHPBB3-11202
Diffstat (limited to 'tests/functional')
-rw-r--r--tests/functional/fileupload_form_test.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/functional/fileupload_form_test.php b/tests/functional/fileupload_form_test.php
index f7267fa659..3db389b4f9 100644
--- a/tests/functional/fileupload_form_test.php
+++ b/tests/functional/fileupload_form_test.php
@@ -64,6 +64,9 @@ class phpbb_functional_fileupload_form_test extends phpbb_functional_test_case
public function test_valid_file()
{
$crawler = $this->upload_file('valid.jpg', 'image/jpeg');
+ $this->assert_response_success();
+ # error message
+ $this->assertNotContains('<h2>' . $this->lang('INFORMATION') . '</h2>', $this->client->getResponse()->getContent());
$this->assertContains($this->lang('POSTED_ATTACHMENTS'), $crawler->filter('#postform h3')->eq(1)->text());
}
}