aboutsummaryrefslogtreecommitdiffstats
path: root/tests/functional/fileupload_form_test.php
diff options
context:
space:
mode:
authorFyorl <gaelreth@gmail.com>2012-07-09 01:29:56 +0100
committerFyorl <gaelreth@gmail.com>2012-07-09 14:08:20 +0100
commitc8059cf7e70ab19f0fad21a7d42d1720392883a7 (patch)
tree550ae4e7f028be37c573f460b0235f5d5322844d /tests/functional/fileupload_form_test.php
parent8d43a6e851bb6caceed6ab3b8a66ffb106c7317d (diff)
downloadforums-c8059cf7e70ab19f0fad21a7d42d1720392883a7.tar
forums-c8059cf7e70ab19f0fad21a7d42d1720392883a7.tar.gz
forums-c8059cf7e70ab19f0fad21a7d42d1720392883a7.tar.bz2
forums-c8059cf7e70ab19f0fad21a7d42d1720392883a7.tar.xz
forums-c8059cf7e70ab19f0fad21a7d42d1720392883a7.zip
[ticket/10941] Fixed form test test_too_large
PHPBB3-10941
Diffstat (limited to 'tests/functional/fileupload_form_test.php')
-rw-r--r--tests/functional/fileupload_form_test.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/functional/fileupload_form_test.php b/tests/functional/fileupload_form_test.php
index abccd6f987..6ba55eeba7 100644
--- a/tests/functional/fileupload_form_test.php
+++ b/tests/functional/fileupload_form_test.php
@@ -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()