Skip to content

Commit

Permalink
[ticket/10941] Fixed form test test_too_large
Browse files Browse the repository at this point in the history
PHPBB3-10941
  • Loading branch information
Fyorl committed Jul 9, 2012
1 parent 8d43a6e commit c8059cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/functional/fileupload_form_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ public function test_too_large()
$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()
Expand Down

0 comments on commit c8059cf

Please sign in to comment.