aboutsummaryrefslogtreecommitdiffstats
path: root/tests/upload/fileupload_test.php
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2015-07-16 16:30:59 +0200
committerMarc Alexander <admin@m-a-styles.de>2015-09-09 08:28:08 +0200
commit46e3d8219671e996677be1943a7e3c80f1039693 (patch)
tree51097a0638fbbb49adbb6b51b76f763b53ffca30 /tests/upload/fileupload_test.php
parent3e99816fa2f184b859d47308254aa8f07d68f1dd (diff)
downloadforums-46e3d8219671e996677be1943a7e3c80f1039693.tar
forums-46e3d8219671e996677be1943a7e3c80f1039693.tar.gz
forums-46e3d8219671e996677be1943a7e3c80f1039693.tar.bz2
forums-46e3d8219671e996677be1943a7e3c80f1039693.tar.xz
forums-46e3d8219671e996677be1943a7e3c80f1039693.zip
[ticket/13904] Add more tests and test cases
PHPBB3-13904
Diffstat (limited to 'tests/upload/fileupload_test.php')
-rw-r--r--tests/upload/fileupload_test.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/upload/fileupload_test.php b/tests/upload/fileupload_test.php
index ab42a4a153..d1d8b55ff3 100644
--- a/tests/upload/fileupload_test.php
+++ b/tests/upload/fileupload_test.php
@@ -179,7 +179,9 @@ class phpbb_fileupload_test extends phpbb_test_case
copy($this->path . 'jpg', $this->path . 'jpg.jpg');
$file = $upload->handle_upload('local', $this->path . 'jpg.jpg');
$this->assertEquals(0, sizeof($file->error));
- unlink($this->path . 'jpg.jpg');
+ $this->assertFalse($file->additional_checks());
+ $this->assertTrue($file->move_file('../tests/upload/fixture/copies', true));
+ $file->remove();
}
public function test_move_existent_file()