diff options
author | Marc Alexander <admin@m-a-styles.de> | 2019-09-20 22:23:06 +0200 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2019-09-20 22:23:06 +0200 |
commit | a7c02304a56e29c0fd4833626ec692a6babcb269 (patch) | |
tree | 8faf99cb5e786106c1c8ccfa5d2091e2759d2fb0 /tests/functional/fileupload_form_test.php | |
parent | d6139846607a4fe3a13d5863b3fa6a52b1fe3c10 (diff) | |
parent | f0afccb173fb728b6c70a8bd86c4d8869043581a (diff) | |
download | forums-a7c02304a56e29c0fd4833626ec692a6babcb269.tar forums-a7c02304a56e29c0fd4833626ec692a6babcb269.tar.gz forums-a7c02304a56e29c0fd4833626ec692a6babcb269.tar.bz2 forums-a7c02304a56e29c0fd4833626ec692a6babcb269.tar.xz forums-a7c02304a56e29c0fd4833626ec692a6babcb269.zip |
Merge branch '3.2.x' into 3.3.x
Diffstat (limited to 'tests/functional/fileupload_form_test.php')
-rw-r--r-- | tests/functional/fileupload_form_test.php | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/functional/fileupload_form_test.php b/tests/functional/fileupload_form_test.php index b0838344de..b2f230b66f 100644 --- a/tests/functional/fileupload_form_test.php +++ b/tests/functional/fileupload_form_test.php @@ -46,6 +46,13 @@ class phpbb_functional_fileupload_form_test extends phpbb_functional_test_case private function upload_file($filename, $mimetype) { + $crawler = self::$client->request( + 'GET', + 'posting.php?mode=reply&f=2&t=1&sid=' . $this->sid + ); + + $file_form_data = array_merge(['add_file' => $this->lang('ADD_FILE')], $this->get_hidden_fields($crawler, 'posting.php?mode=reply&f=2&t=1&sid=' . $this->sid)); + $file = array( 'tmp_name' => $this->path . $filename, 'name' => $filename, @@ -57,7 +64,7 @@ class phpbb_functional_fileupload_form_test extends phpbb_functional_test_case $crawler = self::$client->request( 'POST', 'posting.php?mode=reply&f=2&t=1&sid=' . $this->sid, - array('add_file' => $this->lang('ADD_FILE')), + $file_form_data, array('fileupload' => $file) ); |