1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-11 19:24:01 +02:00

[ticket/13904] Add more tests and test cases

PHPBB3-13904
This commit is contained in:
Marc Alexander
2015-07-16 16:30:59 +02:00
parent 3e99816fa2
commit 46e3d82196
4 changed files with 49 additions and 2 deletions

View File

@@ -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()