mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
[ticket/12175] Fix upload test for empty file
PHPBB3-12175
This commit is contained in:
parent
344baf9180
commit
ff57ecf0bc
1 changed files with 1 additions and 2 deletions
|
@ -63,9 +63,8 @@ class phpbb_functional_fileupload_form_test extends phpbb_functional_test_case
|
||||||
|
|
||||||
public function test_empty_file()
|
public function test_empty_file()
|
||||||
{
|
{
|
||||||
$this->markTestIncomplete('Test fails intermittently.');
|
|
||||||
$crawler = $this->upload_file('empty.png', 'image/png');
|
$crawler = $this->upload_file('empty.png', 'image/png');
|
||||||
$this->assertEquals($this->lang('ATTACHED_IMAGE_NOT_IMAGE'), $this->assert_filter($crawler, 'div#message p')->text());
|
$this->assertEquals($this->lang('EMPTY_FILEUPLOAD'), $crawler->filter('p.error')->text());
|
||||||
}
|
}
|
||||||
|
|
||||||
public function test_invalid_extension()
|
public function test_invalid_extension()
|
||||||
|
|
Loading…
Add table
Reference in a new issue