diff options
author | Marc Alexander <admin@m-a-styles.de> | 2015-07-17 09:29:09 +0200 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2015-09-09 08:28:09 +0200 |
commit | 7ba0fe47a8610b1bd882f00cd1e158c7b29d248c (patch) | |
tree | 78714cafd8f154958e0984fcdb45b5899d659d30 /tests/upload | |
parent | 46e3d8219671e996677be1943a7e3c80f1039693 (diff) | |
download | forums-7ba0fe47a8610b1bd882f00cd1e158c7b29d248c.tar forums-7ba0fe47a8610b1bd882f00cd1e158c7b29d248c.tar.gz forums-7ba0fe47a8610b1bd882f00cd1e158c7b29d248c.tar.bz2 forums-7ba0fe47a8610b1bd882f00cd1e158c7b29d248c.tar.xz forums-7ba0fe47a8610b1bd882f00cd1e158c7b29d248c.zip |
[ticket/13904] Test move file on existing error
PHPBB3-13904
Diffstat (limited to 'tests/upload')
-rw-r--r-- | tests/upload/filespec_test.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/upload/filespec_test.php b/tests/upload/filespec_test.php index a6ea850763..1ba473555f 100644 --- a/tests/upload/filespec_test.php +++ b/tests/upload/filespec_test.php @@ -395,6 +395,14 @@ class phpbb_filespec_test extends phpbb_test_case $this->phpbb_root_path = $phpbb_root_path; } + public function test_move_file_error() + { + $filespec = $this->get_filespec(); + $this->assertFalse($filespec->move_file('foobar')); + $filespec->error[] = 'foo'; + $this->assertFalse($filespec->move_file('foo')); + } + /** * @dataProvider clean_filename_variables */ |