mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
[ticket/10941] Fixed form test test_too_large
PHPBB3-10941
This commit is contained in:
parent
8d43a6e851
commit
c8059cf7e7
1 changed files with 2 additions and 2 deletions
|
@ -45,9 +45,9 @@ class phpbb_functional_fileupload_form_test extends phpbb_functional_test_case
|
|||
$this->markTestIncomplete('Functional tests use an admin account which ignores maximum upload size.');
|
||||
$crawler = $this->request('GET', 'posting.php?mode=reply&f=2&t=1&sid=' . $this->sid);
|
||||
$form = $crawler->selectButton('add_file')->form();
|
||||
$form['fileupload']->upload($path . 'too-large.png');
|
||||
$form['fileupload']->upload($this->path . 'too-large.png');
|
||||
$crawler = $this->client->submit($form);
|
||||
$this->assertEquals(1, $crawler->filter('div#message')->count());
|
||||
$this->assertEquals($this->lang('WRONG_FILESIZE', '256', 'KiB'), $crawler->filter('p.error')->text());
|
||||
}
|
||||
|
||||
public function test_valid_file()
|
||||
|
|
Loading…
Add table
Reference in a new issue