[ticket/11202] Add response assertions to file upload functional test.

PHPBB3-11202
This commit is contained in:
Oleg Pudeyev 2012-11-18 14:15:23 -05:00
parent f4fedfe95b
commit 440c66267e

View file

@ -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());
}
}